toc.html 763 B

1234567891011121314151617181920212223
  1. {#-
  2. This file was automatically generated - do not edit
  3. -#}
  4. {% import "partials/language.html" as lang with context %}
  5. <nav class="md-nav md-nav--secondary" aria-label="{{ lang.t('toc.title') }}">
  6. {% set toc = page.toc %}
  7. {% if toc | first is defined and "\x3ch1 id=" in page.content %}
  8. {% set toc = (toc | first).children %}
  9. {% endif %}
  10. {% if toc | first is defined %}
  11. <label class="md-nav__title" for="__toc">
  12. <span class="md-nav__icon md-icon">
  13. {% include ".icons/material/arrow-left.svg" %}
  14. </span>
  15. {{ lang.t("toc.title") }}
  16. </label>
  17. <ul class="md-nav__list" data-md-scrollfix>
  18. {% for toc_item in toc %}
  19. {% include "partials/toc-item.html" %}
  20. {% endfor %}
  21. </ul>
  22. {% endif %}
  23. </nav>