diff options
author | Stuart Axon <stuaxo2@yahoo.com> | 2017-10-25 15:54:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 15:54:18 +0100 |
commit | 17b00740c259033e21fd1bdbc03d623cc3f9f133 (patch) | |
tree | 7eb08fd0de729cf20c460f74721c74a80e6e5ec7 /gum/templates/sidebar.html | |
parent | 2820df985efd295875e5be72a4bff3364a0e8de5 (diff) | |
download | pelican-themes-17b00740c259033e21fd1bdbc03d623cc3f9f133.tar.gz |
GUM Theme: Only display "Categories" sidebar header if there is more than one category
Diffstat (limited to 'gum/templates/sidebar.html')
-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> |