mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +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 }}
|
||||
{{- $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