Update nav.html

This commit is contained in:
wakgill
2021-01-01 18:06:42 -06:00
committed by GitHub
parent 623bed5edc
commit 59298b6952
+2 -2
View File
@@ -75,14 +75,14 @@
{%- 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>
{%- endif -%}
<a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}"> {{ child.title }} &nbsp;{%- 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 }}&nbsp;{%- if child.date -%} - {{ child.date }} {%- endif -%}</a>
{%- if child.has_children -%}
{%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
<ul class="nav-list">
{%- for grand_child in grand_children_list -%}
{%- unless grand_child.nav_exclude -%}
<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 }} &nbsp;{%- 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 }}&nbsp;{%- if grand_child.date -%} - {{ grand_child.date }} {%- endif -%}</a>
</li>
{%- endunless -%}
{%- endfor -%}