Open jip149 opened 5 months ago
https://github.com/jip149/nuxt-content-fetchNavigation-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.
_dir.yml
index.md
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.
example
No response
Did you sove this?
Why do you need both _dir.yml and index.md in top level? _dir.yml file mainly exists to provide information when index.md is missing.
Environment
Build Modules: -
Reproduction
https://github.com/jip149/nuxt-content-fetchNavigation-bug
Describe the bug
When content dir has both a
_dir.yml
andindex.md
file, metadata from_dir.yml
is used, and metadata fromindex.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