Support DISPLAY_PAGES_ON_MENU (#116)
This commit is contained in:
parent
8da13c059a
commit
953ede091b
1 changed files with 2 additions and 0 deletions
|
@ -110,9 +110,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