Support DISPLAY_PAGES_ON_MENU
This commit is contained in:
parent
79c91d1335
commit
9f8c9fa092
1 changed files with 2 additions and 0 deletions
|
@ -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) %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for name, link in LINKS %}
|
||||
<li><a href="{{ link }}" target="_blank">{{ name }}</a></li>
|
||||
|
|
Loading…
Reference in a new issue