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