From 0e7adf02310f08b72b98be670cc68a82a674e60b Mon Sep 17 00:00:00 2001 From: yingyu5658 Date: Sat, 24 Jan 2026 21:33:02 +0800 Subject: chore: add header in archives page --- layouts/archives/single.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'layouts') diff --git a/layouts/archives/single.html b/layouts/archives/single.html index 6c43aac..698fc46 100644 --- a/layouts/archives/single.html +++ b/layouts/archives/single.html @@ -1,4 +1,5 @@ {{ define "main" }} +
{{- partial "header.html" . -}}
{{ if .Site.Params.postSearch }} - {{ end }} {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} {{ - $excludePosts := where $allPosts "Params.categories" "intersect" (slice - "往昔") }} {{ $postPages := $allPosts | complement $excludePosts }} {{ if + {{ end }} {{ $allPosts := where .Site.RegularPages "Type" "eq" "posts" }} + {{ $excludePosts := where $allPosts "Params.categories" "intersect" (slice "1") }} + + {{ $postPages := $allPosts | complement $excludePosts }} {{ if .Site.Params.showPostCount }}

共有 {{ len $postPages }} 篇文章

{{ end }} -- cgit v1.2.3