12345678910111213141516171819202122232425262728 |
- <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>
|