{% macro nav_loop(page) %} {% for p in page.children.visible %} {% set active_page = (p.active or p.activeChild) ? 'active' : '' %} {% if p.children.visible.count > 0 %}
  • {{ p.menu }}
  • {% else %}
  • {{ p.menu }}
  • {% endif %} {% endfor %} {% endmacro %}