diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-27 23:35:37 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-27 23:35:37 +0800 |
| commit | 9a478cf5ee77a32b83dbe8f03d7ed8e83247937f (patch) | |
| tree | 68036ba1156d29485c8f0f2eebdf9bb84dfbe627 /layouts/posts/page.html | |
| parent | b0247ca24e9f5fd10ede61963d15e416f54156b7 (diff) | |
feat: adapt to new content system - remove more posts link in homepage - more
latest content (posts, essays, library, fictions...) in homepage - use the same
template for posts and essays - new post section list style - show
section-specific categories in section page
Diffstat (limited to 'layouts/posts/page.html')
| -rw-r--r-- | layouts/posts/page.html | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/layouts/posts/page.html b/layouts/posts/page.html index 0320820d..e093e810 100644 --- a/layouts/posts/page.html +++ b/layouts/posts/page.html @@ -1,49 +1,3 @@ {{ define "main" }} - <article> - <!-- Post Header --> - <header - style="view-transition-name: post-{{ .File.UniqueID }}" - class="mb-8 relative" - > - {{ if .Params.banner }} - {{ partial "components/logo" (dict - "class" "block round-sticker w-14 h-14 lg:w-28 lg:h-28 right-2 lg:-right-20 top-2 lg:top-4 absolute rotate-[3.0deg]" - "imageClass" "block w-full" - ) }} - {{ else }} - {{ partial "components/logo" (dict - "class" "block w-[10rem]" - "imageClass" "block w-full" - ) }} - {{ end }} - - {{ partial "posts/banner" . }} - <!-- Title and Subtitle --> - <h1 class="text-size-3xl font-900 xerox"> - <span data-pagefind-meta="title">{{ .Title }}</span> - {{ with .Params.subtitle }} - <small class="block text-secondary font-italic text-size-xl">{{ . }}</small> - {{ end }} - </h1> - <!-- Post Meta --> - <div class="flex flex-wrap items-center gap-2"> - <span class="text-secondary">{{ partial "components/date" . }}</span> - {{ if or .Params.categories .Params.tags }}<span>ยท</span>{{ end }} - {{ partial "components/category-pill" . }} - {{ partial "components/tags" . }} - </div> - </header> - - <!-- Post Content --> - <div class="min-h-[60%] leading-loose mb-8 markdown-body text-size-lg md:text-size-xl" - style="view-transition-name: post-content-{{ .File.UniqueID }}"> - {{ partial "posts/toc" . }} - <div id="post-content">{{ .Content }}</div> - {{ partial "posts/endnotes" . }} - </div> - - {{ partial "posts/action-menu.html" . }} - {{ partial "posts/now-read-this.html" . }} - {{ partial "components/back-to-top.html" . }} - </article> + {{ partial "template/post-page" . }} {{ end }} |
