fix hidden is shown in list.html (section page)

This commit is contained in:
Reorx 2022-09-07 00:38:45 +08:00
parent 8bbb2ac5b5
commit 3bc70e9a2c
1 changed files with 1 additions and 1 deletions

View File

@ -26,10 +26,10 @@
{{- $pages := .Pages }}
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- end }}
{{- $pages = where $pages "Params.hidden" "!=" true }}
{{/* related issue: https://github.com/gohugoio/hugo/issues/9003 */}}
{{ $paginator := "" }}