mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
{% assign url = page.url %}
|
|
{% assign navigation = site.data.navigation[include.nav] %}
|
|
{% if url contains "/es/" %}
|
|
{% assign navigation = site.data.navigation_es[include.nav] %}
|
|
{% endif %}
|
|
{% if url contains "/fr/" %}
|
|
{% assign navigation = site.data.navigation_fr[include.nav] %}
|
|
{% endif %}
|
|
|
|
|
|
<nav class="nav__list">
|
|
{% 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">
|
|
{% for nav in navigation %}
|
|
|
|
<li>
|
|
{% if nav.url %}
|
|
<a href="{{ nav.url | relative_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
|
|
{% else %}
|
|
<span class="nav__sub-title">{{ nav.title }}</span>
|
|
{% endif %}
|
|
|
|
{% if nav.children != null %}
|
|
<ul>
|
|
{% for child in nav.children %}
|
|
<li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|