Do not display empty series and categories in sidebar
This commit is contained in:
parent
ac89567abc
commit
88254d7734
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
@ -22,4 +22,4 @@
|
|||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue