show all pages in archives

This commit is contained in:
Reorx 2022-05-05 01:07:31 +08:00
parent a4d7eb3419
commit d3ec050c59
1 changed files with 1 additions and 5 deletions

View File

@ -9,11 +9,7 @@
{{- end }} {{- end }}
</header> </header>
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- $pages := where site.AllPages "Type" "in" site.Params.mainSections }}
{{- if site.Params.ShowAllPagesInArchive }}
{{- $pages = site.RegularPages }}
{{- end }}
{{- range $pages.GroupByPublishDate "2006" }} {{- range $pages.GroupByPublishDate "2006" }}
{{- if ne .Key "0001" }} {{- if ne .Key "0001" }}