From 102d74c782e4e894334f42158bfe4a5b59b4fa5d Mon Sep 17 00:00:00 2001 From: Kaspar Etter <me@kasparetter.com> Date: Wed, 16 Oct 2019 17:41:39 +0200 Subject: [PATCH] Fix duplicate entries in nav.html This commit resolves #207. --- _includes/nav.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/nav.html b/_includes/nav.html index d561a42a..dafacc86 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -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 %}"> -- GitLab