Pelican 3.7 changes `PAGES` to `pages`
authorM. Taylor Saotome-Westlake <[email protected]>
Sat, 9 Sep 2017 02:03:11 +0000 (19:03 -0700)
committerM. Taylor Saotome-Westlake <[email protected]>
Sat, 9 Sep 2017 02:03:11 +0000 (19:03 -0700)
theme/templates/base.html

index cc65f94..ecf6bc8 100644 (file)
@@ -35,9 +35,9 @@
             <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="rss feed"/></a>
           {% endif %}
            </div>
-           {% if PAGES %}
+           {% if pages %}
              <nav class="pages">
-               {% for p in PAGES %}
+               {% for p in pages %}
                          <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
                          {% if not loop.last %}-{% endif %}
                        {% endfor %}