{% set count = count + 1 %} {% for item in children %} {% if item.page.status == 'published' %}
  1. {{ item.label }} {% if item.children|length > 0 %} {{ render_sitemap_children(item.children, count) }} {% endif %}
  2. {% endif %} {% endfor %}
{#{% if item.children|length > 0 %}{% endif %}#}