2019-09-28 20:42:54 +03:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2019-06-15 16:16:14 +03:00
|
|
|
{% import "partials/language.html" as lang with context %}
|
|
|
|
<nav class="md-nav md-nav--secondary">
|
|
|
|
{% set toc_ = page.toc %}
|
|
|
|
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
|
|
|
|
{% set toc_ = (toc_ | first).children %}
|
|
|
|
{% endif %}
|
|
|
|
{% if toc_ | first is defined %}
|
2019-06-15 16:23:03 +03:00
|
|
|
<label class="md-nav__title" for="__toc">{{ lang.t("toc.title") }}</label>
|
2020-02-16 02:23:50 +03:00
|
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
2019-06-15 16:16:14 +03:00
|
|
|
{% for toc_item in toc_ %}
|
|
|
|
{% include "partials/toc-item.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if page.meta.source and page.meta.source | length > 0 %}
|
|
|
|
<li class="md-nav__item">
|
2019-09-22 13:46:35 +03:00
|
|
|
<a href="#__source" class="md-nav__link md-nav__link--active">
|
2019-06-15 16:23:03 +03:00
|
|
|
{{ lang.t("meta.source") }}
|
2019-06-15 16:16:14 +03:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% set disqus = config.extra.disqus %}
|
|
|
|
{% if page and page.meta and page.meta.disqus is string %}
|
|
|
|
{% set disqus = page.meta.disqus %}
|
|
|
|
{% endif %}
|
|
|
|
{% if not page.is_homepage and disqus %}
|
|
|
|
<li class="md-nav__item">
|
2019-09-22 13:46:35 +03:00
|
|
|
<a href="#__comments" class="md-nav__link md-nav__link--active">
|
2019-06-15 16:23:03 +03:00
|
|
|
{{ lang.t("meta.comments") }}
|
2019-06-15 16:16:14 +03:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|