Check for empty taxonomies

master
Will Faught 1 year ago
parent 2ca246b0bd
commit 7d6da8080e

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

Loading…
Cancel
Save