File: toc-item.html

package info (click to toggle)
python-fakeredis 2.29.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: python: 19,002; sh: 8; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 639 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<li class="md-nav__item">
    <a href="{{ toc_item.url }}" class="md-nav__link">
      <span class="md-ellipsis">
        {{ toc_item.title }}
      </span>
    </a>

    <!-- Table of contents list -->
    {% if toc_item.children %}
    <nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
        <ul class="md-nav__list">
            {% for toc_item in toc_item.children %}
                {% if not page.meta.toc_depth or toc_item.level <= page.meta.toc_depth %}
                    {% include "partials/toc-item.html" %}
                {% endif %}
            {% endfor %}
        </ul>
    </nav>
    {% endif %}
</li>