summaryrefslogtreecommitdiff
path: root/layouts/posts/page.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-27 23:35:37 +0800
committerEltrac <hi@guhub.cn>2025-11-27 23:35:37 +0800
commit5cb1c7eb72fad939bcc76be11e4b6149f37618e1 (patch)
tree338e937126b595840885a529b67c6b62b4ddbdbc /layouts/posts/page.html
parentd56407e244a6b74f6f913507d63e03377cc86308 (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 Former-commit-id: 9a478cf5ee77a32b83dbe8f03d7ed8e83247937f
Diffstat (limited to 'layouts/posts/page.html')
-rw-r--r--layouts/posts/page.html48
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 }}