diff --git a/templates/base.html b/templates/base.html index 39af70c..9110592 100644 --- a/templates/base.html +++ b/templates/base.html @@ -90,7 +90,10 @@ {% if pages or LINKS %} - {% for page in pages|sort(attribute='title') %} + {% if not PAGES_SORT_ATTRIBUTE -%} + {% set PAGES_SORT_ATTRIBUTE = 'title' %} + {%- endif %} + {% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %} {{ page.title }} {% endfor %}