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:
commit
a63b8b7924
@ -123,7 +123,8 @@
|
||||
{% endfor %}
|
||||
|
||||
{% 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>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
|
Loading…
Reference in New Issue
Block a user