Do not display empty series and categories in sidebar

This commit is contained in:
Marcin Zajączkowski 2020-02-19 00:49:34 +01:00
parent ac89567abc
commit 88254d7734
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{{ if $.Param "enableSidebarCategories" }}
{{ if and ($.Param "enableSidebarCategories") (ne (len .Site.Taxonomies.categories) 0) }}
<div class="taxo">
<section>
<span class="title p2">

View File

@ -1,4 +1,4 @@
{{ if $.Param "enableSidebarSeries" }}
{{ if and ($.Param "enableSidebarSeries") (ne (len .Site.Taxonomies.series) 0) }}
<div class="taxo">
<section>
<span class="title p2">