From 9f8c9fa092007cbfad096274b0fc84bce508775f Mon Sep 17 00:00:00 2001 From: Andre Anjos Date: Sun, 7 May 2017 16:53:15 +0200 Subject: [PATCH] Support DISPLAY_PAGES_ON_MENU --- templates/base.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/base.html b/templates/base.html index 105a236..3069e58 100644 --- a/templates/base.html +++ b/templates/base.html @@ -99,9 +99,11 @@ {% if not PAGES_SORT_ATTRIBUTE -%} {% set PAGES_SORT_ATTRIBUTE = 'title' %} {%- endif %} + {% if DISPLAY_PAGES_ON_MENU %} {% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
  • {{ page.title }}
  • {% endfor %} + {% endif %} {% for name, link in LINKS %}
  • {{ name }}