Merge pull request #53 from alasdairnicol/pelican_37_pages

PAGES context variable is replaced by pages in Pelican 3.7
This commit is contained in:
Gilson Filho 2017-03-15 21:55:48 -03:00 committed by GitHub
commit a63b8b7924

View File

@ -123,7 +123,8 @@
{% endfor %} {% endfor %}
{% if DISPLAY_PAGES_ON_MENU %} {% if DISPLAY_PAGES_ON_MENU %}
{% for p in PAGES %} {# FIXME: Simplify to 'for p in pages' when we are ready to drop support for Pelican < 3.7 #}
{% for p in PAGES or pages %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li> <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
{% endfor %} {% endfor %}
{% else %} {% else %}