Grester
Nuxt Content Directory indexing too much?
According to https://content.nuxt.com/usage/content-directory the way to organise the content directories follows this example:
content/index.md /
content/blog/index.md /blog
content/blog/hello.md /blog/hello
I'm trying to use a <ContentList> to list the articles in my blog, however "{page} useContent()" also includes the index.md which I'm not interested. I've tested moving the index out of the folder to its parent, and renaming it again to the folder name, but then, useContent() doesn't recognize it as the blog folder, and ends up listing the root index and blog index files.
Am I just approaching this the wrong way? Should I just add a meta tag and filter the useContent() to just load "posts" for example?
2 replies