2016-01-29 01:27:15 +03:00
|
|
|
{% if nav_item.children %}
|
|
|
|
<li>
|
|
|
|
<span class="section">{{ nav_item.title }}</span>
|
|
|
|
<ul>
|
|
|
|
{% for nav_item in nav_item.children %}
|
2016-02-24 14:40:02 +03:00
|
|
|
{% include "nav.html" %}
|
2016-01-29 01:27:15 +03:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li>
|
2016-02-04 17:03:20 +03:00
|
|
|
<a class="{% if nav_item.active %}current{% endif %}" title="{{ nav_item.title }}" href="{{ nav_item.url }}">
|
2016-01-29 01:27:15 +03:00
|
|
|
{{ nav_item.title }}
|
|
|
|
</a>
|
|
|
|
{% if nav_item == current_page %}
|
2016-02-21 20:19:25 +03:00
|
|
|
{% if h1 %}
|
2016-02-24 14:40:02 +03:00
|
|
|
{% set toc = (toc | first).children %}
|
2016-02-21 20:19:25 +03:00
|
|
|
{% endif %}
|
2016-03-12 15:20:19 +03:00
|
|
|
{% if toc and (toc | first) %}
|
2016-02-21 20:19:25 +03:00
|
|
|
<ul>
|
|
|
|
{% for toc_item in toc %}
|
|
|
|
<li class="anchor">
|
|
|
|
<a title="{{ toc_item.title }}" href="{{ toc_item.url }}">
|
|
|
|
{{ toc_item.title }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2016-01-29 01:27:15 +03:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endif %}
|