summaryrefslogtreecommitdiff
path: root/layouts/_partials/template
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-02-10 13:40:03 +0800
committereltrac <hi@eltr.ac>2026-02-10 13:40:03 +0800
commit1b844f1230a03983bf027a321eb77bb908f469ea (patch)
tree8b30244506bb0a3ddb1a62376555a6b26ff24ae4 /layouts/_partials/template
parent81b562797338f1e6eb15835deacc652c049ac49e (diff)
refactor: use custom render hook
- remove inject-footnotes.js, use a partial that receives `.Content` and does the injection statically - use a `utils/render` partial, as custom "render hook" - reuse `content` partial for all pages
Diffstat (limited to 'layouts/_partials/template')
-rw-r--r--layouts/_partials/template/post-page.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/layouts/_partials/template/post-page.html b/layouts/_partials/template/post-page.html
index b05b6b41..d25b50fe 100644
--- a/layouts/_partials/template/post-page.html
+++ b/layouts/_partials/template/post-page.html
@@ -35,14 +35,7 @@
</div>
</header>
- <!-- Post Content -->
- <div class="min-h-[60%] leading-loose mb-8 markdown-body text-size-md md:text-size-lg"
- style="view-transition-name: post-content-{{ .File.UniqueID }}">
- {{ partial "posts/toc" . }}
- <div id="post-content">{{ .Content }}</div>
- {{ partial "posts/endnotes" . }}
- </div>
-
+ {{ partial "content" . }}
{{ partial "posts/action-menu.html" . }}
{{ partial "components/back-to-top.html" . }}
</article>