{% 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() %} {% else %} {% endif %} {% endwith %} {% endwith %} {% endmacro %} {% macro render_tree_branch(branch) %} {{branch.title}} {% if branch.children %} {% endif %} {% endmacro %} {% macro render_footer_tree(pages) %}
{% endmacro %}