From bca918196bd1ebc4f9f05e7b52e8dc345f639f8f Mon Sep 17 00:00:00 2001 From: Etienne Godin Date: Tue, 31 Jan 2017 12:01:43 -0500 Subject: [PATCH] lowercase 'PAGES' variable in template Pages index/links were not appearing in the menu for whatever the value for {% if DISPLAY_PAGES_ON_MENU != False %} when the for loop was executed -> {% for p in PAGES %} | for a reason lowercase the variable name PAGES to pages works fine. --- templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index a6e422d..6eefd98 100644 --- a/templates/base.html +++ b/templates/base.html @@ -104,7 +104,7 @@ {% if DISPLAY_PAGES_ON_MENU != False %}
  • Pages
  • - {% for p in PAGES %} + {% for p in pages %}
  • {{ p.title }}
  • @@ -179,7 +179,7 @@ {% endfor %} {% if DISPLAY_PAGES_ON_MENU != False %}
  • Pages
  • - {% for p in PAGES %} + {% for p in pages %}
  • {{ p.title }}