Add option to show all pages in archive
usage => In site config `Params.ShowAllPagesInArchive: true`
This commit is contained in:
parent
ae4bf201d1
commit
fc87fc3a29
|
@ -10,6 +10,11 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{- $pages := where site.RegularPages "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" }}
|
||||||
<div class="archive-year">
|
<div class="archive-year">
|
||||||
|
|
Loading…
Reference in New Issue