Use config to hide values

This commit is contained in:
Will Faught
2024-07-17 18:25:34 -07:00
parent b17519532a
commit ada7e4c8c1
18 changed files with 491 additions and 419 deletions

View File

@@ -40,8 +40,8 @@
{{ end }}
{{ $collections := slice }}
{{ $pages := $page.RegularPages }}
{{ $sections := $page.Sections }}
{{ $pages := $page.RegularPages | and ($page.Param "paige.list_page.hide_pages" | not) }}
{{ $sections := $page.Sections | and ($page.Param "paige.list_page.hide_sections" | not) }}
{{ if $page.IsHome }}
{{ range $name, $taxonomy := site.Taxonomies }}
@@ -51,6 +51,8 @@
{{ end }}
{{ end }}
{{ $collections = $collections | and ($page.Param "paige.list_page.hide_collections" | not) }}
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
{{ $pages = $page.Pages }}
{{ end }}