{% macro loop(page) %} {% for p in page.children %} {% if p.visible %} {% set current_page = (p.active or p.activeChild) ? 'active' : '' %}