Merge pull request #5 from egodin/patch-1

Pages were available to themes as lowercase pages and uppercase PAGES. PAGES has been removed in new versions of Pelican.
This commit is contained in:
Luca Chiricozzi 2017-02-06 16:55:18 +01:00 committed by GitHub
commit b38328526e

View File

@ -104,7 +104,7 @@
{% if DISPLAY_PAGES_ON_MENU != False %}
<li class="uk-nav-header">Pages</li>
{% for p in PAGES %}
{% for p in pages %}
<li {% if p == page %}class="uk-active"{% endif %}>
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
</li>
@ -179,7 +179,7 @@
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU != False %}
<li class="uk-nav-header">Pages</li>
{% for p in PAGES %}
{% for p in pages %}
<li {% if p == page %}class="uk-active"{% endif %}>
<a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
</li>