aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/archives/single.html8
1 files changed, 5 insertions, 3 deletions
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" }}
+<header>{{- partial "header.html" . -}}</header>
<content>
{{ if .Site.Params.postSearch }}
<input
@@ -58,9 +59,10 @@
}
});
</script>
- {{ 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 }}
<p id="post-count">共有 {{ len $postPages }} 篇文章</p>
{{ end }}