aboutsummaryrefslogtreecommitdiffstats
path: root/gum
diff options
context:
space:
mode:
authorStuart Axon <stuaxo2@yahoo.com>2017-10-25 15:54:18 +0100
committerGitHub <noreply@github.com>2017-10-25 15:54:18 +0100
commit17b00740c259033e21fd1bdbc03d623cc3f9f133 (patch)
tree7eb08fd0de729cf20c460f74721c74a80e6e5ec7 /gum
parent2820df985efd295875e5be72a4bff3364a0e8de5 (diff)
downloadpelican-themes-17b00740c259033e21fd1bdbc03d623cc3f9f133.tar.gz
GUM Theme: Only display "Categories" sidebar header if there is more than one category
Diffstat (limited to 'gum')
-rw-r--r--gum/templates/sidebar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/gum/templates/sidebar.html b/gum/templates/sidebar.html
index a60477f..9e07507 100644
--- a/gum/templates/sidebar.html
+++ b/gum/templates/sidebar.html
@@ -19,8 +19,8 @@
{% endif %}
</ul>
+{% if categories and categories|length > 1 %}
<h4>Categories</h4>
-{% if categories %}
<ul class="blank">
{% for cat, null in categories %}
<li><a href="{{ SITEURL }}/{{ cat.url|e }}">{{ cat }}</a></li>