aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap2
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2016-04-10 08:56:39 -0700
committerJustin Mayer <entroP@gmail.com>2016-04-10 08:56:39 -0700
commit089476e7bae8c6b63bb800145c823b0c671b8224 (patch)
treefaa1d37684c0699141a15db9d57fb5993cdfa6b4 /bootstrap2
parentd32b18826bd816c799d958917f924dad51713384 (diff)
parent0b80096104d67e0ea9262c6152b7acb34154d7a7 (diff)
downloadpelican-themes-089476e7bae8c6b63bb800145c823b0c671b8224.zip
pelican-themes-089476e7bae8c6b63bb800145c823b0c671b8224.tar.gz
pelican-themes-089476e7bae8c6b63bb800145c823b0c671b8224.tar.bz2
Merge pull request #382 from sevagh/bootstrap2
bootstrap2: respect DISPLAY_CATEGORIES_ON_MENU setting
Diffstat (limited to 'bootstrap2')
-rw-r--r--bootstrap2/templates/base.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap2/templates/base.html b/bootstrap2/templates/base.html
index d96470e..a5ffa2f 100644
--- a/bootstrap2/templates/base.html
+++ b/bootstrap2/templates/base.html
@@ -75,6 +75,7 @@
{% endfor %}
<li class="divider-vertical"></li>
{% endif %}
+ {% if DISPLAY_CATEGORIES_ON_MENU %}
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}>
<a href="{{ SITEURL }}/{{ cat.url }}">
@@ -82,6 +83,7 @@
</a>
</li>
{% endfor %}
+ {% endif %}
<ul class="nav pull-right">
<li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li>