{% for p in PAGES %} {% if page and p.slug == page.slug %} {{ p.title }} {% else %} {{ p.title }} {% endif %} {% endfor %}