Use methods for page kinds

This commit is contained in:
Will Faught
2024-06-04 21:56:17 -07:00
parent 05a972cc6e
commit 1698ac5989

View File

@@ -5,8 +5,8 @@
{{ $manypagegroups := false }} {{ $manypagegroups := false }}
{{ $pagegroups := slice }} {{ $pagegroups := slice }}
{{ $pager := false }} {{ $pager := false }}
{{ $pages := where $page.Pages "Kind" "in" (slice "page" "term") }} {{ $pages := $page.RegularPages }}
{{ $sections := where $page.Pages "Kind" "section" }} {{ $sections := $page.Sections }}
{{ range $name, $taxonomy := cond $page.IsHome site.Taxonomies slice }} {{ range $name, $taxonomy := cond $page.IsHome site.Taxonomies slice }}
{{ if gt (len $taxonomy) 0 }} {{ if gt (len $taxonomy) 0 }}