2017-03-09 13:16:08 -05:00
|
|
|
<nav>
|
|
|
|
<ul class="navigation-list">
|
2017-04-08 18:51:14 -04:00
|
|
|
{% assign pages_list = site.html_pages | sort:"nav_order" %}
|
2017-03-09 13:16:08 -05:00
|
|
|
{% for node in pages_list %}
|
|
|
|
<li class="navigation-list-item{% if page.url == node.url %} active{% endif %} js-side-nav-item">
|
|
|
|
{% if node.parent == nil or node.has_children == true %}
|
|
|
|
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url or (page.parent != nil and page.parent == node.parent) %} active{% endif %}">{{ node.title }}</a>
|
|
|
|
{% if (node.has_children == true and node.parent == page.parent) %}
|
2017-03-26 21:09:19 -04:00
|
|
|
{% assign children_list = site.html_pages | sort:"nav_order" %}
|
2017-03-09 13:16:08 -05:00
|
|
|
<ul class="navigation-list-child-list">
|
|
|
|
{% for child in children_list %}
|
|
|
|
{% if child.parent == node.parent and child.title != node.title %}
|
2017-03-24 09:47:37 -04:00
|
|
|
<li class="navigation-list-item {% if page.url == child.url %} active{% endif %}">
|
2017-03-09 13:16:08 -05:00
|
|
|
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|