Commit 905a9671 authored by Raymond Wanyoike's avatar Raymond Wanyoike Committed by GitHub
Browse files

Merge pull request #56 from rwanyoike/fix-pages-context

Remove PAGES; use pages instead
parents 7a79a67f d35b4699
......@@ -68,13 +68,13 @@
{% if SITESUBTITLE %}
<p class="text-muted">{{ SITESUBTITLE }}</p>
{% endif %}
{% if LINKS or (DISPLAY_PAGES_ON_MENU and PAGES) or ICONS %}
{% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %}
<ul class="list-inline">
{% for title, link in LINKS %}
<li class="list-inline-item"><a href="{{ link }}" target="_blank">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for page in PAGES %}
{% for page in pages %}
{% if LINKS and loop.first %}
<li class="list-inline-item text-muted">|</li>
{% endif %}
......@@ -82,7 +82,7 @@
{% endfor %}
{% endif %}
{% for icon, link in ICONS %}
{% if (LINKS or (DISPLAY_PAGES_ON_MENU and PAGES)) and loop.first %}
{% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %}
<li class=" list-inline-item text-muted">|</li>
{% endif %}
<li class="list-inline-item"><a class="fa fa-{{ icon }}" href="{{ link }}" target="_blank"></a></li>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment