mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<header class="md-header">
|
|
<nav class="md-header-nav md-grid">
|
|
<div class="md-flex">
|
|
<div class="md-flex__cell md-flex__cell--shrink">
|
|
<label class="md-icon md-icon--menu md-header-nav__icon" for="drawer"></label>
|
|
</div>
|
|
<div class="md-flex__cell md-flex__cell--stretch">
|
|
<span class="md-flex__ellipsis md-header-nav__title">
|
|
{{ page_title | default(site_name, true) }}
|
|
</span>
|
|
</div>
|
|
<div class="md-flex__cell md-flex__cell--shrink">
|
|
<label class="md-icon md-icon--search md-header-nav__icon" for="search"></label>
|
|
{% include "partials/search.html" %}
|
|
</div>
|
|
{% if "github." in repo_url %}
|
|
{% set platform = "md-source--github" %}
|
|
{% elif "gitlab." in repo_url %}
|
|
{% set platform = "md-source--gitlab" %}
|
|
{% elif "bitbucket." in repo_url %}
|
|
{% set platform = "md-source--bitbucket" %}
|
|
{% else %}
|
|
{% set platform = "" %}
|
|
{% endif %}
|
|
<div class="md-flex__cell md-flex__cell--shrink">
|
|
<a href="{{ repo_url }}" title="Go to repository" class="md-source {{ platform }}">
|
|
<div class="md-source__repository">{{ repo_name }}</div>
|
|
<ul class="md-source__facts">
|
|
<li class="md-source__fact">v0.2.4</li>
|
|
</ul>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|