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 @@