mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
Add param 'hiddenInHomeList' to hide certain post from home page
Usage => --- title: post name hiddenInHomeList: true ---
This commit is contained in:
parent
198a4d74ae
commit
b906338dc8
@ -40,6 +40,7 @@
|
||||
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }}
|
||||
{{- end }}
|
||||
|
||||
{{- $paginator := .Paginate $pages }}
|
||||
|
Loading…
Reference in New Issue
Block a user