From 7d6da8080e080bad64c23c28622c87fcf7c60cdf Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 7 Jun 2024 18:56:28 -0700 Subject: [PATCH] Check for empty taxonomies --- layouts/partials/paige/pages.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index f53f8d01..0c756789 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -9,7 +9,9 @@ {{ $sections := $page.Sections }} {{ range $name, $taxonomy := cond $page.IsHome site.Taxonomies slice }} - {{ $collections = $collections | append $taxonomy.Page }} + {{ if $taxonomy.Page }} + {{ $collections = $collections | append $taxonomy.Page }} + {{ end }} {{ end }} {{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}