Merge pull request #1767 from ingwinlu/rm_PAGES

Remove PAGES; use pages instead
This commit is contained in:
Justin Mayer 2015-08-02 08:59:08 -07:00
commit ed71ad0d3a
5 changed files with 17 additions and 3 deletions

View file

@ -250,3 +250,16 @@ moved out of the pelican core and into a separate `plugin
<https://github.com/getpelican/pelican-plugins/tree/master/tag_cloud>`_.
See the :ref:`plugins` documentation further information about the
Pelican plugin system.
Since I upgraded Pelican my Pages are no longer rendered
========================================================
Pages were available to Themes as lowercase ``pages`` and uppercase
``PAGES``. To bring this inline with the :ref:`templates-variables` section,
``PAGES`` has been removed. This is quickly resolved by updating your theme
to iterate over ``pages`` instead of ``PAGES``. Just replace::
{% for pg in PAGES %}
with something like::
{% for pg in pages %}

View file

@ -47,6 +47,8 @@ To make your own theme, you must follow the following structure::
if it helps you keep things organized while creating your theme.
.. _templates-variables:
Templates and variables
=======================