2016-04-18 22:22:53 +02:00
|
|
|
{% assign navigation = site.data.navigation[include.nav] %}
|
2016-03-25 19:12:03 +01:00
|
|
|
|
2016-03-25 19:50:59 +01:00
|
|
|
<nav class="nav__list">
|
2016-11-17 21:06:07 +01:00
|
|
|
{% if page.sidebar.title %}<h3 class="nav__title" style="padding-left: 0;">{{ page.sidebar.title }}</h3>{% endif %}
|
|
|
|
<input id="ac-toc" name="accordion-toc" type="checkbox" />
|
|
|
|
<label for="ac-toc">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</label>
|
|
|
|
<ul class="nav__items">
|
2016-03-25 19:12:03 +01:00
|
|
|
{% for nav in navigation %}
|
2016-04-18 22:22:53 +02:00
|
|
|
<li>
|
|
|
|
{% if nav.url %}
|
2020-03-06 21:37:07 +01:00
|
|
|
<a href="{{ nav.url | relative_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
|
2016-04-18 22:22:53 +02:00
|
|
|
{% else %}
|
|
|
|
<span class="nav__sub-title">{{ nav.title }}</span>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-03-25 19:12:03 +01:00
|
|
|
{% if nav.children != null %}
|
|
|
|
<ul>
|
|
|
|
{% for child in nav.children %}
|
2020-03-06 21:37:07 +01:00
|
|
|
<li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }}</a></li>
|
2016-03-25 19:12:03 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-03-06 21:37:07 +01:00
|
|
|
</nav>
|