Hello ,
I've been reading the nuxt tutorials (pretty clear) and started to play around with the nuxt-multilanguage-site
repository. It's feel really cool ! But I'm now facing an issue by trying to set multiple dynamic paths.
The repository is perfect for generating pages with custom paths per language, like for an about page:
www.site.com/en-gb/about
www.site.com/fr-fr/a-propos
But on top of that, I would like to add 2 other CT:
-
blog-post
(Repeat type) -
blog-landing
(Single type) (will be the listing page for myblog-post
s)
I've setted up something working nicely with this tree:
pages/
├─ _lang/
│ ├─ index.vue
│ ├─ _uid.vue
│ ├─ blog/
│ │ ├─ index.vue
│ │ ├─ _uid.vue
├─ _uid.vue
├─ index.vue
But here, blog
is hardcoded, and for SEO purpose I would preffer having the blog
slug being dynamicly retreived from the uid of the blog-landing
.
The goal is to be able to get this
www.site.com/en-gb/blog/
www.site.com/en-gb/blog/uid678
www.site.com/fr-fr/articles/
www.site.com/fr-fr/articles/uid123
// and also keep my other pages like my about page:
www.site.com/en-gb/about
www.site.com/fr-fr/a-propos
I'm not sure how to handle this use case. Do you have any leads on this ?
Thanks for time