mkdocs-material/material/drawer.html

74 lines
2.3 KiB
HTML
Raw Normal View History

<nav aria-label="Navigation">
{% set home = repo_url | default("/", true) %}
<a href="{{ home }}" class="project">
2016-01-29 01:27:15 +03:00
<div class="banner">
2016-02-04 17:03:20 +03:00
{% if config.extra.logo %}
<div class="logo">
2016-02-09 23:59:37 +03:00
<img src="{{ base_url }}/{{ config.extra.logo }}">
2016-02-04 17:03:20 +03:00
</div>
{% endif %}
2016-01-29 01:27:15 +03:00
<div class="name">
2016-03-17 18:51:20 +03:00
<strong>
{{ site_name }}
<span class="version">
{{ config.extra.version }}
</span>
</strong>
2016-02-04 17:03:20 +03:00
{% if repo_id %}
<br>
{{ repo_id }}
{% endif %}
2016-01-29 01:27:15 +03:00
</div>
</div>
</a>
<div class="scrollable">
<div class="wrapper">
{% if repo_name == "GitHub" and repo_url %}
2016-01-29 01:27:15 +03:00
<ul class="repo">
<li class="repo-download">
{% set version = config.extra.version | default("master") %}
<a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" title="Download" data-action="download">
2016-01-29 01:27:15 +03:00
<i class="icon icon-download"></i> Download
</a>
</li>
<li class="repo-stars">
<a href="{{ repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star">
<i class="icon icon-star"></i> Stars
2016-01-29 01:27:15 +03:00
<span class="count">&ndash;</span>
</a>
</li>
</ul>
2016-02-04 17:03:20 +03:00
<hr>
2016-01-29 01:27:15 +03:00
{% endif %}
<div class="toc">
<ul>
{% for nav_item in nav %}
{% include "nav.html" %}
{% endfor %}
</ul>
2016-02-04 17:03:20 +03:00
{% if config.extra.author %}
<hr>
<span class="section">The author</span>
<ul>
{% if config.extra.author.twitter %}
{% set author = config.extra.author.twitter %}
<li>
<a href="https://twitter.com/{{ author }}" target="_blank" title="@{{ author }} on Twitter">
@{{ author }} on Twitter
</a>
</li>
{% endif %}
{% if config.extra.author.github %}
{% set author = config.extra.author.github %}
<li>
<a href="https://github.com/{{ author }}" target="_blank" title="@{{ author }} on GitHub">
@{{ author }} on GitHub
</a>
</li>
{% endif %}
</ul>
2016-01-29 01:27:15 +03:00
{% endif %}
</div>
2016-01-29 01:27:15 +03:00
</div>
</div>
2016-03-17 18:51:20 +03:00
</nav>