aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens Lutz <lutzcle@cml.li>2016-06-07 18:08:36 +0200
committerClemens Lutz <lutzcle@cml.li>2016-06-10 14:13:06 +0200
commit77af0b69c30fe5c23e72b3ec0a1e362c140968f0 (patch)
tree249f3a925140ed71667e6a653dd7e150cd08919a
parent28dae178166ae78c3eae2b2ce37a4eab340be468 (diff)
downloadpelican-themes-77af0b69c30fe5c23e72b3ec0a1e362c140968f0.zip
pelican-themes-77af0b69c30fe5c23e72b3ec0a1e362c140968f0.tar.gz
pelican-themes-77af0b69c30fe5c23e72b3ec0a1e362c140968f0.tar.bz2
pelican-bootstrap3: Display navbar-toggle button
only if pages exist and DISPLAY_PAGES_ON_MENU is enabled or categories exist and DISPLAY_CATEGORIES_ON_MENU is enabled.
-rw-r--r--pelican-bootstrap3/templates/base.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html
index 8757f1a..1ad6611 100644
--- a/pelican-bootstrap3/templates/base.html
+++ b/pelican-bootstrap3/templates/base.html
@@ -105,12 +105,14 @@
<div class="navbar {% if BOOTSTRAP_NAVBAR_INVERSE %}navbar-inverse{% else %}navbar-default{% endif %} navbar-fixed-top" role="navigation">
<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
<div class="navbar-header">
+ {% if MENUITEMS or (PAGES and DISPLAY_PAGES_ON_MENU) or (categories and DISPLAY_CATEGORIES_ON_MENU) %}
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
+ {% endif %}
<a href="{{ SITEURL }}/" class="navbar-brand">
{% if SITELOGO %}<img src="{{ SITEURL }}/{{ SITELOGO }}" width="{{ SITELOGO_SIZE }}"/> {% endif %}
{% if not HIDE_SITENAME %}{{ SITENAME }}{% endif %}