diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html
index 3e8a4e2..4c782d3 100644
--- a/alchemy/templates/base.html
+++ b/alchemy/templates/base.html
@@ -68,13 +68,13 @@
{% if SITESUBTITLE %}
{{ SITESUBTITLE }}
{% endif %}
- {% if LINKS or (DISPLAY_PAGES_ON_MENU and PAGES) or ICONS %}
+ {% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %}
{% for title, link in LINKS %}
- {{ title }}
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
- {% for page in PAGES %}
+ {% for page in pages %}
{% if LINKS and loop.first %}
- |
{% endif %}
@@ -82,7 +82,7 @@
{% endfor %}
{% endif %}
{% for icon, link in ICONS %}
- {% if (LINKS or (DISPLAY_PAGES_ON_MENU and PAGES)) and loop.first %}
+ {% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %}
- |
{% endif %}