mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Add option to show all pages in archive
usage =>
    In site config
    `Params.ShowAllPagesInArchive: true`
			
			
This commit is contained in:
		| @@ -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"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange