summaryrefslogtreecommitdiffstats
path: root/theme/mkdocs_windmill/nav-item.html
blob: 8e4180a06c375aef2339a99edeead4920f4c3df6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<li class="wm-toc-li wm-toc-lev{{ navlevel }} {% if nav_item.children %}wm-toc-opener{% endif %}">
  {%- if nav_item.url or nav_item.is_page or nav_item.is_link or nav_item.url -%}
    <a href="{{ nav_item.url }}" class="wm-article-link wm-toc-text">{{ nav_item.title }}</a>
  {%- else -%}
    <span class="wm-toc-text">{{ nav_item.title }}</span>
  {%- endif %}
</li>

{%- if nav_item.children %}
<li class="wm-toc-li-nested collapse">
  <ul class="wm-toctree">
    {%- set navlevel = navlevel + 1%}
    {%- for nav_item in nav_item.children %}
      {% include 'nav-item.html' %}
    {%- endfor %}
    {%- set navlevel = navlevel - 1%}
  </ul>
</li>
{% endif %}