nextra icon indicating copy to clipboard operation
nextra copied to clipboard

Add navbar to a dynamic route

Open LunaticMuch opened this issue 1 year ago • 1 comments

I am facing this need. I want to create a dynamic route using the page router in Next.JS while building a website based on Nextra. The dynamic route can be rendered by its own, but I would like to have both the Navbar and the Footer.

How to to make this happen?

I am looking at #332 which seems to requested this and it has been included by @B2o5T for Nextra3 in #1421. Is there any possible workaround today I can follow?

LunaticMuch avatar Jun 17 '23 18:06 LunaticMuch

We have the same issue. It seems that dynamic routes do not get added to the page map https://github.com/shuding/nextra/blob/main/packages/nextra/src/plugin.ts#L87-L89 🧐

moklick avatar Dec 11 '23 15:12 moklick