2017-01-13 00:31:37 +01:00
|
|
|
{% import "partials/language.html" as lang %}
|
2016-09-23 11:56:25 +02:00
|
|
|
<nav class="md-nav md-nav--secondary">
|
2017-01-02 08:57:19 +01:00
|
|
|
{% set toc_ = page.toc %}
|
2017-02-08 23:13:13 +01:00
|
|
|
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
|
2017-01-02 08:57:19 +01:00
|
|
|
{% set toc_ = (toc_ | first).children %}
|
2016-09-23 11:56:25 +02:00
|
|
|
{% endif %}
|
2017-02-08 23:13:13 +01:00
|
|
|
{% if toc_ | first is defined %}
|
2017-01-13 00:31:37 +01:00
|
|
|
<label class="md-nav__title" for="toc">{{ lang.t('toc.title') }}</label>
|
2016-12-29 14:19:26 +01:00
|
|
|
<ul class="md-nav__list" data-md-scrollfix>
|
2017-01-02 08:57:19 +01:00
|
|
|
{% for toc_item in toc_ %}
|
2016-09-23 11:56:25 +02:00
|
|
|
{% include "partials/toc-item.html" %}
|
|
|
|
{% endfor %}
|
2017-03-11 14:07:07 +01:00
|
|
|
{% if page.meta.source and page.meta.source | length > 0 %}
|
|
|
|
<li class="md-nav__item">
|
|
|
|
<a href="#__source" title="{{ lang.t('meta.source') }}" class="md-nav__link md-nav__link--active">
|
|
|
|
{{ lang.t('meta.source') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if config.extra.disqus and not page.is_homepage %}
|
|
|
|
<li class="md-nav__item">
|
|
|
|
<a href="#__comments" title="{{ lang.t('meta.comments') }}" class="md-nav__link md-nav__link--active">
|
|
|
|
{{ lang.t('meta.comments') }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2016-09-23 11:56:25 +02:00
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2016-09-30 13:29:45 +02:00
|
|
|
</nav>
|