Support DISPLAY_PAGES_ON_MENU (#116)

This commit is contained in:
André Anjos 2019-01-03 20:25:19 +01:00 committed by Alexandre Vicenzi
parent 8da13c059a
commit 953ede091b

View file

@ -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>