fix hidden is shown in list.html (section page)
This commit is contained in:
parent
8bbb2ac5b5
commit
3bc70e9a2c
|
@ -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 := "" }}
|
||||||
|
|
Loading…
Reference in New Issue