{% for entry in include.entries %}
  • {% if entry.children %} {{ entry.name }} {% else %} {{ entry.name }} {% if include.my_entry == entry.url %} {% endif %} {% endif %} {% comment %} Insert page-specific ToC here if this is the entry for this page {% endcomment %} {% if include.my_entry == entry.url %}
    {% endif %} {% if entry.children %} {% include toc_recursive_main.html entries=entry.children my_entry=include.my_entry path_to_root=include.path_to_root %} {% endif %}
  • {% endfor %}