From 25ea0cacc111877d55a39c8c089db91cfee340aa Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 6 Jun 2026 12:14:37 +0800 Subject: Use `cd ~` instead of `回到首页` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/archives/single.html | 64 +++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 34 deletions(-) (limited to 'layouts/archives/single.html') diff --git a/layouts/archives/single.html b/layouts/archives/single.html index 83436ac..e7fc884 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -1,44 +1,40 @@ {{ define "main" }}
-

{{ .Site.Title }}

- + cd ~
+
- {{ if .Data.Singular }} -

Filtering for "{{ .Title }}"

- Remove filter - {{ end }} + {{ if .Data.Singular }} +

Filtering for "{{ .Title }}"

+ Remove filter + {{ end }} - {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} - {{ $excludePosts := where $allPosts "Params.categories" "intersect" (slice "1") }} - {{ $postPages := ($allPosts | complement $excludePosts) }} + {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} + {{ $excludePosts := where $allPosts "Params.categories" "intersect" (slice "1") }} + {{ $postPages := ($allPosts | complement $excludePosts) }} - + + {{ if not .Data.Singular }} + + {{ end }}
{{ end }} -- cgit v1.2.3