nathanr
nathanr
NNuxt
Created by nathanr on 1/31/2025 in #❓・help
Setting Up An Article Based Website Using Nuxt Content
Hi all, Has anyone managed to set up a Nuxt3 content site? I believe I have done all the steps correctly: - Added module to nuxt.config.ts - Added basic content.config.ts - Page file structure is pages -> articles -> index.vue & [slug].vue - Created content folder which is content -> articles -> *.md files. It seems that when I use the following code const { data: article } = await useAsyncData(() => queryCollection('articles').where({ _path: ${slug} }).findOne() ) I get nothing, any help will be much appreciated!
6 replies