{% load wagtailcore_tags %} {% for item in pages %} {% if item.children %} {% else %}
  • {{ item.page.title }}
  • {% endif %} {% endfor %}