Permalink
Browse files

[#5] Fix broken 'PAGES' template variable

Pages were not displayed in the menue because the template variable used
``PAGES``) should not be in all-caps but ``pages`` instead.
This commit fixes this.

Closes: #5
  • Loading branch information...
elbenfreund committed Aug 1, 2017
1 parent e9c821c commit 4dfebe6bc1d97ddbcf681da8f3b0548aaac79d41
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/base.html
@@ -28,7 +28,7 @@ <h1><a href="{{ SITEURL }}/">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SIT
{% if not PAGES_SORT_ATTRIBUTE -%}
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
{% endif %}
{% for pg in PAGES | sort(attribute=PAGES_SORT_ATTRIBUTE) %}
{% for pg in pages | sort(attribute=PAGES_SORT_ATTRIBUTE) %}
{% if 'http://' in pg.url -%}
<li><a href="{{ pg.url }}">{{ pg.title }}</a></li>
{% else %}

0 comments on commit 4dfebe6

Please sign in to comment.