toc_recursive_dropdown.html 417 B

123456789101112
  1. {% for entry in include.entries %}
  2. {% if entry.url != null %}
  3. <li>
  4. <a class="{% if include.my_entry == entry.url %}this-page{% endif %}" href="{{ include.path_to_root }}{{ entry.url }}">
  5. {{ entry.name }}
  6. </a>
  7. </li>
  8. {% endif %}
  9. {% if entry.children %}
  10. {% include toc_recursive_dropdown.html entries=entry.children my_entry=include.my_entry path_to_root=include.path_to_root %}
  11. {% endif %}
  12. {% endfor %}