From 5cb1c7eb72fad939bcc76be11e4b6149f37618e1 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 27 Nov 2025 23:35:37 +0800 Subject: 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 --- layouts/posts/page.html | 48 +----------------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) (limited to 'layouts/posts/page.html') 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" }} -
- -
- {{ 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 }} - {{ with .Params.subtitle }} - {{ . }} - {{ end }} -

- -
- {{ partial "components/date" . }} - {{ if or .Params.categories .Params.tags }}ยท{{ end }} - {{ partial "components/category-pill" . }} - {{ partial "components/tags" . }} -
-
- - -
- {{ partial "posts/toc" . }} -
{{ .Content }}
- {{ partial "posts/endnotes" . }} -
- - {{ partial "posts/action-menu.html" . }} - {{ partial "posts/now-read-this.html" . }} - {{ partial "components/back-to-top.html" . }} -
+ {{ partial "template/post-page" . }} {{ end }} -- cgit v1.2.3