From d3ec050c59ad86e7c6f2eea6e88bab0c8a0fa50a Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 01:07:31 +0800 Subject: [PATCH] show all pages in archives --- layouts/_default/archives.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index e400e2c..966da8a 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -9,11 +9,7 @@ {{- end }} -{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} - -{{- if site.Params.ShowAllPagesInArchive }} -{{- $pages = site.RegularPages }} -{{- end }} +{{- $pages := where site.AllPages "Type" "in" site.Params.mainSections }} {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}