{% load wagtailcore_tags %} {% for p in page.get_children.live.public %} {% if p.get_children.live.public.count > 0 %}
  • {{ p.title }}
  • {% else %}
  • {{ p.title }}
  • {% endif %}{% endfor %}