Check for empty taxonomies

This commit is contained in:
Will Faught
2024-06-07 18:56:28 -07:00
parent 2ca246b0bd
commit 7d6da8080e

View File

@@ -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) }}