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" }}