diff --git a/CHANGELOG.md b/CHANGELOG.md index e45770dd..9ca84c5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Go to the `v1` branch to see the changelog of Lume 1. ## [2.3.1] - Unreleased ### Fixed - Updated deps: `sass`, `std`, `pagefind`, `xml`, `postcss`, `decap-cms`. +- Nav plugin: Search for pages with basename as `index`. ## [2.3.0] - 2024-08-30 ### Added diff --git a/plugins/nav.ts b/plugins/nav.ts index 7dc0d8ec..aa5fc8ef 100644 --- a/plugins/nav.ts +++ b/plugins/nav.ts @@ -273,6 +273,9 @@ function searchData(parts: string[], menu: NavData): NavData | undefined { if (child.data.basename === part) { return searchData(parts, child); } + if (child.data.basename === "index" && menu.data.basename === part) { + return searchData(parts, child); + } } } }