decentralized-id.github.io/_includes/nav_list

27 lines
1002 B
Plaintext
Raw Normal View History

2019-03-28 19:40:33 -04:00
{% assign navigation = site.data.navigation[include.nav] %}
<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 %}
2023-02-10 04:44:06 -05:00
<a href="{{ nav.url | relative_url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
2019-03-28 19:40:33 -04:00
{% else %}
<span class="nav__sub-title">{{ nav.title }}</span>
{% endif %}
{% if nav.children != null %}
<ul>
{% for child in nav.children %}
2023-02-10 04:44:06 -05:00
<li><a href="{{ child.url | relative_url }}"{% if child.url == page.url %} class="active"{% endif %}>{{ child.title }}</a></li>
2019-03-28 19:40:33 -04:00
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
2023-02-10 04:44:06 -05:00
</nav>