2019-07-06 03:46:01 +02:00
|
|
|
{% assign split_path = page.path | split: "/" %}
|
|
|
|
{% assign locale = split_path[1] %}
|
|
|
|
{% if locale == 'en_US' %}
|
|
|
|
{% assign locale_var = '/' %}
|
|
|
|
{% else %}
|
|
|
|
{% assign locale_var = locale | prepend:'/' | append:'/' %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% assign title = site.data.navigation[locale].sidebar_title %}
|
|
|
|
{% assign navigation = site.data.navigation[locale].sidebar_pages %}
|
2016-10-30 01:02:14 +02:00
|
|
|
|
|
|
|
<nav class="nav__list">
|
2016-11-23 02:29:35 +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">
|
2019-07-06 03:46:01 +02:00
|
|
|
<li>
|
|
|
|
<span class="nav__sub-title">{{ title[0].title }}</span>
|
|
|
|
<ol>
|
|
|
|
{% for link in site.data.navigation[locale].sidebar_pages %}
|
|
|
|
{% if link.url == "/" %}
|
|
|
|
<li style="display: none;" data-name="home"><a href='{{ domain }}{{ locale_var }}'>{{ link.title }}</a></li>
|
|
|
|
{% elsif link.url == "multiple-options" %}
|
|
|
|
<li style="display: none;" data-name="multiple-options"><i>({{ link.title }})</i></li>
|
2016-10-30 01:02:14 +02:00
|
|
|
{% else %}
|
2019-07-06 03:46:01 +02:00
|
|
|
<li style="display: none;" data-name="{{ site.data.navigation.en_US.sidebar_pages[forloop.index0].url }}"><a href='{{ domain }}{{ locale_var }}{{ link.url }}'>{{ link.title }}</a></li>
|
2016-10-30 01:02:14 +02:00
|
|
|
{% endif %}
|
2019-07-06 03:46:01 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
|
|
|
</li>
|
2016-10-30 01:02:14 +02:00
|
|
|
</ul>
|
2023-09-29 04:03:51 +02:00
|
|
|
</nav>
|