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 }} {{- $pages := .Pages }}
{{- if .IsHome }} {{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- end }} {{- end }}
{{- $pages = where $pages "Params.hidden" "!=" true }}
{{/* related issue: https://github.com/gohugoio/hugo/issues/9003 */}} {{/* related issue: https://github.com/gohugoio/hugo/issues/9003 */}}
{{ $paginator := "" }} {{ $paginator := "" }}