mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +01: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 }}
|
{{- 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" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $paginator := .Paginate $pages }}
|
{{- $paginator := .Paginate $pages }}
|
||||||
|
Loading…
Reference in New Issue
Block a user