{% macro render_page(page, active_page) %} {% with active_class='active' if (page==active_page or active_page in page.children) or ''%} {% set aria_current='aria-current="page"'|safe if page==active_page else "" %} {% with page_html_id=page.slug %} {% if page.children.all() %}