diff --git a/layouts/partials/taxonomy/taxonomy-categories.html b/layouts/partials/taxonomy/taxonomy-categories.html index d6d0b9d..6565e45 100644 --- a/layouts/partials/taxonomy/taxonomy-categories.html +++ b/layouts/partials/taxonomy/taxonomy-categories.html @@ -1,4 +1,4 @@ -{{ if $.Param "enableSidebarCategories" }} +{{ if and ($.Param "enableSidebarCategories") (ne (len .Site.Taxonomies.categories) 0) }}
diff --git a/layouts/partials/taxonomy/taxonomy-series.html b/layouts/partials/taxonomy/taxonomy-series.html index 0fde46a..dd64db4 100644 --- a/layouts/partials/taxonomy/taxonomy-series.html +++ b/layouts/partials/taxonomy/taxonomy-series.html @@ -1,4 +1,4 @@ -{{ if $.Param "enableSidebarSeries" }} +{{ if and ($.Param "enableSidebarSeries") (ne (len .Site.Taxonomies.series) 0) }}
@@ -22,4 +22,4 @@ {{ end }}
-{{ end }} \ No newline at end of file +{{ end }}