Skip to content

Commit

Permalink
fix menu
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Sep 5, 2024
1 parent 38a6609 commit 8e1b966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions plugins/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit 8e1b966

Please sign in to comment.