Merge pull request #26 from fxer/master
honor pelican DISPLAY_PAGES_ON_MENU setting
diff --git a/templates/base.html b/templates/base.html
index a17a878..fbe5b86 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -125,12 +125,14 @@
{% block header %}
<p id="header">
<a href="{{ SITEURL }}">Home</a>
-
+
+ {% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %}
{% if p.url != "index.html" %}
| <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
{% endif %}
{% endfor %}
+ {% endif %}
{% if INDEX_SAVE_AS and INDEX_SAVE_AS != "index.html" %}
| <a href="{{ SITEURL }}/{{ INDEX_SAVE_AS }}">Blog</a>
{% endif %}