mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-01 02:27:17 +01:00
81 lines
2.4 KiB
HTML
81 lines
2.4 KiB
HTML
|
<!-- Navigation -->
|
||
|
<nav aria-label="navigation">
|
||
|
|
||
|
<!-- Project information -->
|
||
|
<a href="/" class="project">
|
||
|
|
||
|
<!-- Name and logo -->
|
||
|
<div class="banner">
|
||
|
<div class="logo"></div>
|
||
|
<div class="name">
|
||
|
{{ site_name }}
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
|
||
|
<!-- Repository and table of contents -->
|
||
|
<div class="scrollable">
|
||
|
<div class="wrapper">
|
||
|
|
||
|
<!-- Repository -->
|
||
|
{% if repo_name == 'GitHub' %}
|
||
|
{% set repo_id = repo_url | replace('https://github.com/', '') %}
|
||
|
<ul class="repo">
|
||
|
<li class="repo-download">
|
||
|
<a href="https://github.com/{{ repo_id }}/archive/master.zip"
|
||
|
target="_blank" aria-label="Download {{ repo_id }} on GitHub">
|
||
|
<i class="icon icon-download"></i> Download
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="repo-stars">
|
||
|
<a href="https://github.com/{{ repo_id }}"
|
||
|
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 %}
|
||
|
|
||
|
<!-- Table of contents -->
|
||
|
<ul class="toc">
|
||
|
{% for nav_item in nav %}
|
||
|
{% include "toc.html" %}
|
||
|
{% endfor %}
|
||
|
|
||
|
<!-- Author-related links -->
|
||
|
{% if config.extra.author.twitter or config.extra.author.github %}
|
||
|
<li>
|
||
|
<hr />
|
||
|
<span class="section">The author</span>
|
||
|
<ul>
|
||
|
|
||
|
<!-- Twitter -->
|
||
|
{% 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 %}
|
||
|
|
||
|
<!-- GitHub -->
|
||
|
{% 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>
|