Merge pull request #186 from szpak/emptySeries2

Do not display empty series and categories in sidebar
This commit is contained in:
zzossig 2020-02-19 09:16:26 +09:00 committed by GitHub
commit f396dc9a9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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">
@ -22,4 +22,4 @@
{{ end }}
</section>
</div>
{{ end }}
{{ end }}