Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add navbar to a dynamic route #1976

Open
LunaticMuch opened this issue Jun 17, 2023 · 1 comment
Open

Add navbar to a dynamic route #1976

LunaticMuch opened this issue Jun 17, 2023 · 1 comment

Comments

@LunaticMuch
Copy link

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?

@moklick
Copy link

moklick commented Dec 11, 2023

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 🧐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants