show all pages in archives
This commit is contained in:
parent
a4d7eb3419
commit
d3ec050c59
|
@ -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" }}
|
||||||
|
|
Loading…
Reference in New Issue