Merge pull request #171 from RiceKab/page-sort-fallback
Using PAGE_ORDER_BY as the default sorting setting.
This commit is contained in:
commit
63e3192b27
1 changed files with 3 additions and 3 deletions
|
@ -107,11 +107,11 @@
|
||||||
{% if pages or LINKS %}
|
{% if pages or LINKS %}
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
{% if not PAGES_SORT_ATTRIBUTE -%}
|
{% if PAGES_SORT_ATTRIBUTE -%}
|
||||||
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
{% set pages = pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% if DISPLAY_PAGES_ON_MENU %}
|
{% if DISPLAY_PAGES_ON_MENU %}
|
||||||
{% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
|
{% for page in pages %}
|
||||||
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue