Does the layout for Nextra have to live at the root (be a RootLayout)? #4410
florianmartens
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I initially thought the layout of nextra was quite flexible and I could just move it to any point of the file tree:
But I'm running into some problems with how the pages are resolved.
The screenshot shows the problem. CX is of
type=page. Yet the sidebar does not adjust correctly. I see all pages from the base path plus the pages fromcx. Expected are only the pages fromcx. Am I doing something wrong?I created an example repo: https://github.com/florianmartens/nextra-example
Beta Was this translation helpful? Give feedback.
All reactions