mirror of
				https://github.com/adityatelange/hugo-PaperMod.git
				synced 2025-10-31 00:12:43 +01:00 
			
		
		
		
	Fixed hiddenInHomeList logic to use a boolean.
The previous code would check for the string "true" instead of the boolean true. This made it so that 'hiddenInHomeList: false' would hide a page, instead of showing it. This fixes this by using a boolean.
This commit is contained in:
		| @@ -42,7 +42,7 @@ | |||||||
|  |  | ||||||
| {{- if .IsHome }} | {{- if .IsHome }} | ||||||
| {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} | {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} | ||||||
| {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true"  }} | {{- $pages = where $pages "Params.hiddenInHomeList" "!=" true }} | ||||||
| {{- end }} | {{- end }} | ||||||
|  |  | ||||||
| {{- $paginator := .Paginate $pages }} | {{- $paginator := .Paginate $pages }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aaron Isotton
					Aaron Isotton