{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %} {% macro nav_loop(page) %} {% for p in page.children.visible %} {% set active_page = (p.active or p.activeChild) ? 'active' : '' %} {% set modules = p.collection() %} {% if p.children.visible.count > 0 %}