destructure Nuxt routing and Content markdow files #1149
Unanswered
thibautSchmutz
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Maybe you can try such structure in
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I don't know that I would move them into separate folders. What happens when you want to create a third category? What you could do is use front matter to tag each of your posts title: Hello Content v2
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thank you so much for having developed this awesome content v2 module !
I would like to create a Blog website with two main topics : Vue and Nuxt. Each topic page will display a list of all the blog articles related to it.
The content folder looks looks like this :
The pages folder looks like this :
The issue I am facing is : since [...slug].vue destructures every routes under either /vue/ or /nuxt/, the index.vue file is never read.
Is there a way to keep the dynamic load of each document.md through destructurig [...slug] and also be able to display the index.vue when we hit localhost:3000/vue or localhost:3000/nuxt ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions