aboutsummaryrefslogtreecommitdiffstats
path: root/gum
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2017-11-12 12:03:47 -0800
committerGitHub <noreply@github.com>2017-11-12 12:03:47 -0800
commitcc1171fae0f88f4ef65ec7ca748db97616d8975d (patch)
tree1601241f188d32f35d72cabdac6a1a8e979e9e0d /gum
parentc2a9c473fc52094285b5ae9e2d7695e23a8c0a6a (diff)
parent17b00740c259033e21fd1bdbc03d623cc3f9f133 (diff)
downloadpelican-themes-cc1171fae0f88f4ef65ec7ca748db97616d8975d.tar.gz
Merge pull request #566 from stuaxo/patch-3
Gum: Only show "Categories" sidebar element if there is more than one
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>