diff options
author | Justin Mayer <entroP@gmail.com> | 2017-11-12 12:03:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 12:03:47 -0800 |
commit | cc1171fae0f88f4ef65ec7ca748db97616d8975d (patch) | |
tree | 1601241f188d32f35d72cabdac6a1a8e979e9e0d | |
parent | c2a9c473fc52094285b5ae9e2d7695e23a8c0a6a (diff) | |
parent | 17b00740c259033e21fd1bdbc03d623cc3f9f133 (diff) | |
download | pelican-themes-cc1171fae0f88f4ef65ec7ca748db97616d8975d.tar.gz |
Merge pull request #566 from stuaxo/patch-3
Gum: Only show "Categories" sidebar element if there is more than one
-rw-r--r-- | gum/templates/sidebar.html | 2 |
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> |