Update nav.html

This commit is contained in:
wakgill
2021-01-01 17:40:09 -06:00
committed by GitHub
parent 0a445bfd5e
commit 07063d79fb
+2 -2
View File
@@ -75,14 +75,14 @@
{%- if child.has_children -%} {%- if child.has_children -%}
<a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a> <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
{%- endif -%} {%- endif -%}
<a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}{%- if child.date -%} - {{ child.date }} {%- endif -%}</a> <a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }} {%- if child.date -%} - {{ child.date }} {%- endif -%}</a>
{%- if child.has_children -%} {%- if child.has_children -%}
{%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%} {%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
<ul class="nav-list"> <ul class="nav-list">
{%- for grand_child in grand_children_list -%} {%- for grand_child in grand_children_list -%}
{%- unless grand_child.nav_exclude -%} {%- unless grand_child.nav_exclude -%}
<li class="nav-list-item {% if page.url == grand_child.url %} active{% endif %}"> <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 }}{%- if grand_child.date -%} - {{ grand_child.date }} {%- endif -%}</a> <a href="{{ grand_child.url | absolute_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }} {%- if grand_child.date -%} - {{ grand_child.date }} {%- endif -%}</a>
</li> </li>
{%- endunless -%} {%- endunless -%}
{%- endfor -%} {%- endfor -%}