content
content copied to clipboard
fetchNavigation with /_dir.yml and /index.md return incoherent results
Environment
- Operating System: Linux
- Node Version: v21.6.0
- Nuxt Version: 3.11.2
- CLI Version: 3.11.1
- Nitro Version: 2.9.6
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, modules, typescript
- Runtime Modules: [email protected], @nuxt/[email protected], @nuxtjs/[email protected], [email protected]
- Build Modules: -
Reproduction
https://github.com/jip149/nuxt-content-fetchNavigation-bug
Describe the bug
When content dir has both a _dir.yml and index.md file, metadata from _dir.yml is used, and metadata from index.md can't be found in the navigation.
If the index.md file is removed, metadata from _dir.yml can't be found in the navigation.
Subdirectories work as expected, see the example directory in the repo above.
Additional context
No response
Logs
No response