Skip to content

Commit 864346a

Browse files
committed
Add option to show all pages in archive
usage => In site config `Params.ShowAllPagesInArchive: true`
1 parent 0bad3b7 commit 864346a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

layouts/_default/archives.html

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ <h1>{{ .Title }}</h1>
1010
</header>
1111

1212
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
13+
14+
{{- if .Site.Params.ShowAllPagesInArchive }}
15+
{{- $pages = site.RegularPages }}
16+
{{- end }}
17+
1318
{{- range $pages.GroupByPublishDate "2006" }}
1419
{{- if ne .Key "0001" }}
1520
<div class="archive-year">

0 commit comments

Comments
 (0)