content icon indicating copy to clipboard operation
content copied to clipboard

fetchNavigation with /_dir.yml and /index.md return incoherent results

Open jip149 opened this issue 1 year ago • 0 comments

Environment



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

jip149 avatar Jun 08 '24 10:06 jip149