mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
66 lines
2.2 KiB
HTML
66 lines
2.2 KiB
HTML
<nav aria-label="navigation">
|
|
<a href="{{ repo_url }}" 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 }} {{ config.extra.version }}</strong>
|
|
{% if repo_id %}
|
|
<br>
|
|
{{ repo_id }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="scrollable">
|
|
<div class="wrapper">
|
|
{% if repo_name == 'GitHub' %}
|
|
<ul class="repo">
|
|
<li class="repo-download">
|
|
{% set version = config.extra.version | default('master') %}
|
|
<a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" aria-label="Download {{ repo_id }} from GitHub">
|
|
<i class="icon icon-download"></i> Download
|
|
</a>
|
|
</li>
|
|
<li class="repo-stars">
|
|
<a href="{{ repo_url }}" target="_blank" aria-label="Star {{ repo_id }} on GitHub">
|
|
<i class="icon icon-star"></i> Star
|
|
<span class="count">–</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<hr>
|
|
{% endif %}
|
|
<ul class="toc">
|
|
{% for nav_item in nav %}
|
|
{% include "nav.html" %}
|
|
{% endfor %}
|
|
{% if config.extra.author %}
|
|
<li>
|
|
<hr>
|
|
<span class="section">The author</span>
|
|
<ul>
|
|
{% if config.extra.author.twitter %}
|
|
<li>
|
|
<a href="https://twitter.com/{{ config.extra.author.twitter }}" title="@{{ config.extra.author.twitter }} on Twitter" target="_blank">
|
|
@{{ config.extra.author.twitter }} on Twitter
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if config.extra.author.github %}
|
|
<li>
|
|
<a href="https://github.com/{{ config.extra.author.github }}" title="@{{ config.extra.author.twitter }} on GitHub" target="_blank">
|
|
@{{ config.extra.author.github }} on GitHub
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav> |