summaryrefslogtreecommitdiffstats
path: root/theme/mkdocs_windmill/nav-pane.html
blob: d9dc7d518e40ab90ced5eb575a5dcc6ba589f500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{# Side-pane with table of contents #}
<nav class="wm-toc-pane">
  {# Optional link to the repository #}
  {%- block repo %}
    {%- if config.repo_url %}
    <ul class="wm-toctree wm-toc-repo">
      <li class="wm-toc-li wm-toc-lev1">
      <a class="wm-article-link wm-toc-text" href="{{ config.repo_url }}">
        {% include 'repo-icon.html' %}
        {{ config.repo_name }}
      </a>
      </li>
    </ul>
    {%- endif %}
  {%- endblock %}

  {%- block site_nav %}
  <ul class="wm-toctree">
    {%- set navlevel = 1 %}
    {%- for nav_item in nav %}
        {% include 'nav-item.html' %}
    {%- endfor %}
  </ul>
  {%- endblock %}
</nav>