show all pages in archives
This commit is contained in:
parent
a4d7eb3419
commit
d3ec050c59
|
@ -9,11 +9,7 @@
|
|||
{{- end }}
|
||||
</header>
|
||||
|
||||
{{- $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" }}
|
||||
|
|
Loading…
Reference in New Issue