2016-02-16 15:10:33 +03:00
|
|
|
<nav aria-label="Header">
|
2016-01-29 01:27:15 +03:00
|
|
|
<div class="bar default">
|
|
|
|
<div class="button button-menu" role="button" aria-label="Menu">
|
|
|
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="stretch">
|
|
|
|
<div class="title">
|
|
|
|
{% if current_page %}
|
|
|
|
<span class="path">
|
|
|
|
{% for doc in current_page.ancestors %}
|
|
|
|
{% if doc.link %}
|
|
|
|
<a href="{{ doc.link | e }}">{{ doc.title }}</a>
|
|
|
|
<i class="icon icon-link"></i>
|
|
|
|
{% else %}
|
|
|
|
{{ doc.title }} <i class="icon icon-link"></i>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2016-02-24 14:40:02 +03:00
|
|
|
{{ page_title | default(site_name, true) }}
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-24 14:40:02 +03:00
|
|
|
{% if config.extra.get("author", {}).twitter %}
|
|
|
|
{% set author = config.extra.author.twitter %}
|
2016-01-29 01:27:15 +03:00
|
|
|
<div class="button button-twitter" role="button" aria-label="Twitter">
|
2016-02-24 14:40:02 +03:00
|
|
|
<a href="https://twitter.com/{{ author }}" title="@{{ author }} on Twitter" target="_blank" class="toggle-button icon icon-twitter"></a>
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-02-24 14:40:02 +03:00
|
|
|
{% if config.extra.get("author", {}).github %}
|
|
|
|
{% set author = config.extra.author.github %}
|
2016-01-29 01:27:15 +03:00
|
|
|
<div class="button button-github" role="button" aria-label="GitHub">
|
2016-02-24 14:40:02 +03:00
|
|
|
<a href="https://github.com/{{ author }}" title="@{{ author }} on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="button button-search" role="button" aria-label="Search">
|
2016-02-04 17:03:20 +03:00
|
|
|
<label class="toggle-button icon icon-search" title="Search" for="toggle-search"></label>
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="bar search">
|
|
|
|
<div class="button button-close" role="button" aria-label="Close">
|
2016-02-04 17:03:20 +03:00
|
|
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
<div class="stretch">
|
|
|
|
<div class="field">
|
2016-11-05 15:58:19 +03:00
|
|
|
<input class="query" type="text" placeholder="{{ config.extra.get('i18n', {}).search | default('Search') }}" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false">
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-11-05 15:58:19 +03:00
|
|
|
<div class="button button-reset" role="button" aria-label="{{ config.extra.get('i18n', {}).search | default('Search') }}">
|
2016-02-04 17:03:20 +03:00
|
|
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
2016-01-29 01:27:15 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|