{% load sitetree %} {% for item in sitetree_items %} {% if item.has_children %} {% else %} {{ item.title_resolved }} {% endif %} {% endfor %}