Added PAGE_ORDER_BY as the default page ordering setting. Falls back to PAGES_SORT_ATTRIBUTE when this is not defined (the old behaviour).

This commit is contained in:
Kevin Chi Yan Tang 2019-03-24 11:32:53 +01:00
parent 953ede091b
commit 8a80be0b78

View file

@ -107,6 +107,9 @@
{% if pages or LINKS %}
<nav>
<ul class="list">
{% if PAGE_ORDER_BY -%}
{% set PAGES_SORT_ATTRIBUTE = PAGE_ORDER_BY %}
{%- endif %}
{% if not PAGES_SORT_ATTRIBUTE -%}
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
{%- endif %}