diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index 507b156a..fb21f4a5 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -1,8 +1,15 @@ {{ $page := . }} -{{ $collections := cond $page.IsHome site.Taxonomies slice }} +{{ $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 }} + {{ end }} +{{ end }} {{ with $collections }}