summaryrefslogtreecommitdiff
path: root/mkdocs-material/material/drawer.html
blob: 57a3beb2942ff78da74d42d41316f3940ec4b2fe (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<nav aria-label="Navigation">
  {% set home = repo_url | default("/", true) %}
  <a href="{{ home }}" class="project">
    <div class="banner">
      {% if config.extra.logo %}
        <div class="logo">
          <img src="{{ base_url }}/{{ config.extra.logo }}">
        </div>
      {% endif %}
      <div class="name">
        <strong>
          {{ site_name }}
          <span class="version">
            {{ config.extra.version }}
          </span>
        </strong>
        {% if repo_id %}
          <br>
          {{ repo_id }}
        {% endif %}
      </div>
    </div>
  </a>
  <div class="scrollable">
    <div class="wrapper">
      {% if repo_name == "GitHub" and repo_url %}
        <ul class="repo">
          <li class="repo-download">
            {% if config.extra.github and config.extra.github.download_release %}
              {% set version = config.extra.version | default("../latest") %}
              <a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank" title="Download" data-action="download">
                <i class="icon icon-download"></i> Download
              </a>
            {% else %}
              {% set version = config.extra.version | default("master") %}
              <a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" title="Download" data-action="download">
                <i class="icon icon-download"></i> Download
              </a>
            {% endif %}
          </li>
          <li class="repo-stars">
            <a href="{{ repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star">
              <i class="icon icon-star"></i> Stars
              <span class="count">&ndash;</span>
            </a>
          </li>
        </ul>
        <hr>
      {% endif %}
      <div class="toc">
        <ul>
          {% for nav_item in nav %}
            {% include "nav.html" %}
          {% endfor %}
        </ul>
      </div>
    </div>
  </div>
</nav>