Use taxonomy values directly

This commit is contained in:
Will Faught
2024-05-29 00:08:44 -07:00
parent 98addb4bb8
commit a1008ae0b8

View File

@@ -3,11 +3,10 @@
{{ $collections := slice }}
{{ $sections := where $page.Pages "Kind" "section" }}
{{ $pages := where $page.Pages "Kind" "in" (slice "page" "term") }}
{{ $taxonomies := cond $page.IsHome site.Taxonomies slice }}
{{ range $k, $v := $taxonomies }}
{{ if gt (len $v) 0 }}
{{ $collections = $collections | append $k }}
{{ range $name, $taxonomy := cond $page.IsHome site.Taxonomies slice }}
{{ if gt (len $taxonomy) 0 }}
{{ $collections = $collections | append $taxonomy.Page }}
{{ end }}
{{ end }}
@@ -18,7 +17,7 @@
{{ end }}
{{ range . }}
{{ partial "paige/page.html" (site.GetPage .) }}
{{ partial "paige/page.html" . }}
{{ end }}
</div>
{{ end }}