diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-14 19:54:29 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-14 19:54:29 +0800 |
| commit | 614a754c724c8fe2baaa25d2eb03ae5bf041ba72 (patch) | |
| tree | fd9d7c8d655a656aea6b80bb9f79f9475c06ac90 /layouts/posts/page.html | |
| parent | 2698f41d495ca24dc8697d8c64fe066d332d9a4e (diff) | |
refactor: rename 'single' to 'page'
Diffstat (limited to 'layouts/posts/page.html')
| -rw-r--r-- | layouts/posts/page.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/layouts/posts/page.html b/layouts/posts/page.html new file mode 100644 index 00000000..bdb0f617 --- /dev/null +++ b/layouts/posts/page.html @@ -0,0 +1,42 @@ +{{ define "main" }} + {{ partial "components/post-page-header.html" . }} + <article class="post" id="article"> + <!-- Post Header --> + <header + style="view-transition-name: post-{{ .File.UniqueID }}" + class="post-header" + > + {{ partial "posts/banner" . }} + <!-- Title and Subtitle --> + <h1 class="post-title"> + <span data-pagefind-meta="title">{{ .Title }}</span> + {{ with .Params.subtitle }} + <small class="post-subtitle">{{ . }}</small> + {{ end }} + </h1> + <!-- Post Meta --> + <div class="post-meta"> + {{ partial "components/date" . }} + {{ if or .Params.categories .Params.tags }}<span>ยท</span>{{ end }} + {{ partial "components/category-pill" . }} + {{ partial "components/tags" . }} + </div> + </header> + + <!-- Post Content --> + <div class="post-content markdown-body" + style="view-transition-name: post-content-{{ .File.UniqueID }}"> + <!-- TOC --> + {{ partial "posts/toc" . }} + <!-- Content --> + <div id="post-content"> + {{ .Content }} + </div> + <!-- Endnotes --> + {{ partial "posts/endnotes" . }} + </div> + + {{ partial "posts/action-menu.html" . }} + {{ partial "posts/now-read-this.html" . }} + </article> +{{ end }} |
