Skip to content
Snippets Groups Projects
Unverified Commit 102d74c7 authored by Kaspar Etter's avatar Kaspar Etter
Browse files

Fix duplicate entries in nav.html

This commit resolves #207.
parent 8bd2da55
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
{%- endif -%}
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
{%- if child.has_children -%}
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | where: "grand_parent", node.title | sort:"nav_order" -%}
<ul class="navigation-list-child-list">
{%- for grand_child in grand_children_list -%}
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment