{% load wagtailcore_tags %} {% for link in primarynav %} {% with children=link.value.page.get_children.live.public.in_menu %} {% include_block link with has_children=children.exists class="primary" %} {% if children.exists %} ‹ Back {% include_block link %} {% for child in children.all %} {% include "navigation/includes/menu_item.html" with page=child class="secondary" %} {% endfor %} {% endif %} {% endwith %} {% endfor %} Log in Apply