diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-05 01:07:31 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-05 01:07:31 +0800 |
| commit | d3ec050c59ad86e7c6f2eea6e88bab0c8a0fa50a (patch) | |
| tree | e376fcb85f141f83177d81f8ccaf95a777ed647f /layouts | |
| parent | a4d7eb3419dc9288054555b03949ad3597788cb2 (diff) | |
show all pages in archives
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/archives.html | 6 |
1 files changed, 1 insertions, 5 deletions
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 }} </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" }} |
