blob: b42d50dcefd92bfe2b9de68ba36d78f357c59b88 [file] [log] [blame]
<ul class="site-toc">
{% for entry in include.entries %}
<li>
{% if entry.children %}
<span class="toc-section-heading">
{{ entry.name }}
</span>
{% else %}
<a class="{% if include.my_entry == entry.url %}this-page{% endif %}" href="{{ include.path_to_root }}{{ entry.url }}">
{{ entry.name }}
</a>
{% if include.my_entry == entry.url %}
<span class="entry-highlight"></span>
{% endif %}
{% endif %}
{% comment %}
Insert page-specific ToC here if this is the entry for this page
{% endcomment %}
{% if include.my_entry == entry.url %}<div id="page-toc" class="page-toc"></div>{% 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 %}
</li>
{% endfor %}
</ul>