From f3926bf444a29310be0d14b1311b3dd832b1c310 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 19 Dec 2021 11:12:30 +0100 Subject: [PATCH] Fixed filtering of subsequent index.md files when using section index pages --- material/partials/nav-item.html | 9 ++++----- src/partials/nav-item.html | 10 ++++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/material/partials/nav-item.html b/material/partials/nav-item.html index 650bb4db6..427285ad0 100644 --- a/material/partials/nav-item.html +++ b/material/partials/nav-item.html @@ -21,9 +21,9 @@ {% endif %} {% set indexes = [] %} {% if "navigation.indexes" in features %} - {% for item in nav_item.children %} - {% if item.is_index and not index is defined %} - {% set _ = indexes.append(item) %} + {% for nav_item in nav_item.children %} + {% if nav_item.is_index and not index is defined %} + {% set _ = indexes.append(nav_item) %} {% endif %} {% endfor %} {% endif %} @@ -51,8 +51,7 @@