root Layout question
Answered
Argentine ant posted this in #help-forum
Argentine antOP
how to create such website structure with new next js app routing
I need to have nav and footer of the website on the root /, blog/, faq/
but I don't need them in app/ route
I need to have nav and footer of the website on the root /, blog/, faq/
but I don't need them in app/ route
Answered by Willow shoot sawfly
You can do this with route groups.
https://nextjs.org/docs/app/building-your-application/routing/route-groups
/app would be in one route group, while /, /blog, and /faq would be in another one. Each route group can have its own layout.https://nextjs.org/docs/app/building-your-application/routing/route-groups
2 Replies
@Argentine ant how to create such website structure with new next js app routing
I need to have nav and footer of the website on the root /, blog/, faq/
but I don't need them in app/ route
Willow shoot sawfly
You can do this with route groups.
https://nextjs.org/docs/app/building-your-application/routing/route-groups
/app would be in one route group, while /, /blog, and /faq would be in another one. Each route group can have its own layout.https://nextjs.org/docs/app/building-your-application/routing/route-groups
Answer
@Willow shoot sawfly You can do this with route groups. `/app` would be in one route group, while `/`, `/blog`, and `/faq` would be in another one. Each route group can have its own layout.
https://nextjs.org/docs/app/building-your-application/routing/route-groups
Argentine antOP
just what I was searching for
thanks a lot!
thanks a lot!