summaryrefslogtreecommitdiff
path: root/layouts/_default
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
commit09b01ccb70d596a10830dfd889d80f6d355ae6c5 (patch)
tree77fdee589510dacae0cd4768cfbaf19f477140a2 /layouts/_default
parent28d69d0ee83882da26a1fe7138830b5e6ca40de2 (diff)
chore: exclude non-posts page from archive
Diffstat (limited to 'layouts/_default')
-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 }}