mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-26 23:15:53 -05: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