2019-07-22 03:33:17 -04:00
|
|
|
<ul class="nav-list">
|
2019-08-10 14:53:59 -04:00
|
|
|
{%- assign pages_list = site.html_pages | sort: "nav_order" -%}
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- for node in pages_list -%}
|
|
|
|
{%- unless node.nav_exclude -%}
|
|
|
|
{%- if node.parent == nil -%}
|
2019-07-22 03:33:17 -04:00
|
|
|
<li class="nav-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- if page.parent == node.title or page.grand_parent == node.title -%}
|
|
|
|
{%- assign first_level_url = node.url | absolute_url -%}
|
|
|
|
{%- endif -%}
|
2019-08-10 14:53:59 -04:00
|
|
|
{%- if node.has_children -%}
|
|
|
|
<a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#arrow-right"></use></svg></a>
|
|
|
|
{%- endif -%}
|
2019-07-22 03:33:17 -04:00
|
|
|
<a href="{{ node.url | absolute_url }}" class="nav-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- if node.has_children -%}
|
2019-08-10 14:53:59 -04:00
|
|
|
{%- assign children_list = site.html_pages | where: "parent", node.title | sort: "nav_order" -%}
|
|
|
|
<ul class="nav-list">
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- for child in children_list -%}
|
2019-07-22 03:33:17 -04:00
|
|
|
<li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- if page.url == child.url or page.parent == child.title -%}
|
|
|
|
{%- assign second_level_url = child.url | absolute_url -%}
|
|
|
|
{%- endif -%}
|
2019-08-10 14:53:59 -04:00
|
|
|
{%- if child.has_children -%}
|
|
|
|
<a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#arrow-right"></use></svg></a>
|
|
|
|
{%- endif -%}
|
2019-07-22 03:33:17 -04:00
|
|
|
<a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- if child.has_children -%}
|
2019-08-10 14:53:59 -04:00
|
|
|
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort: "nav_order" -%}
|
|
|
|
<ul class="nav-list">
|
2019-07-21 08:36:51 -04:00
|
|
|
{%- for grand_child in grand_children_list -%}
|
2019-07-22 03:33:17 -04:00
|
|
|
<li class="nav-list-item {% if page.url == grand_child.url %} active{% endif %}">
|
|
|
|
<a href="{{ grand_child.url | absolute_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
|
2019-07-21 08:36:51 -04:00
|
|
|
</li>
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|
|
|
|
{%- endif -%}
|
|
|
|
</li>
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|
|
|
|
{%- endif -%}
|
|
|
|
</li>
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endunless -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|