summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-25 16:51:09 +0800
committerEltrac <hi@guhub.cn>2025-04-25 16:51:09 +0800
commit929e42e576b97e843f66befc711b29f2d4cbfc14 (patch)
tree7b7f87a3d8bfc4e034a41286f0f636c3bc1654c8
parentfb0839853de5ff065a39e20cec733588318f87ce (diff)
chore: exclude non-posts page from archive
Former-commit-id: 09b01ccb70d596a10830dfd889d80f6d355ae6c5
-rw-r--r--layouts/_default/section.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 657bee24..139b72e8 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -4,7 +4,7 @@
<div id="posts-archive" class="posts-list">
{{ partial "components/heatmap.html" . }}
<!-- Post Archive List -->
- {{ range (where site.RegularPages "Type" "in" site.Params.mainSections).GroupByDate "2006" -}}
+ {{ range (where site.RegularPages "Type" "eq" "posts").GroupByDate "2006" -}}
<section class="posts-year-archive">
<h1 class="posts-year-title">
{{ .Key }}