{% for child in page.root %} {% if child.children %} {% endif %} {% endfor %}