-
|
Back in Nuxt Content v1, I used this code: And then in the I'd run a v-for with the items to render it. Basic. But it seems impossible to do this on the newer version. I'm doing this: And all I'm getting it metadata like: How do I read it's content and then create a template structure within my v-for loop selecting elements? Something like: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Never mind. I found the solution. My yml file was starting with --- which is usually is only standard for multiple documents within single stream in yaml files. Nuxt Content was failing to pick it up as a result. I removed the dashes and I got a new property called |
Beta Was this translation helpful? Give feedback.
Never mind. I found the solution. My yml file was starting with --- which is usually is only standard for multiple documents within single stream in yaml files. Nuxt Content was failing to pick it up as a result. I removed the dashes and I got a new property called
bodyin the Log. So now I'm able to access my yml file content using: