shuding / nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.
https://nextra.site
MIT License
11.7k stars 1.27k forks source link

Custom Layouts #2016

Open moklick opened 1 year ago

moklick commented 1 year ago

Is it somehow possible or planned to support custom layouts? I could imagine that lots of cases could be covered with a custom layout. In our case we wanted to display a full layout with a breadcrumb. Currently the only way to do this is to create a custom theme, when I see it right.

C-EO commented 1 year ago

That's the only way. U can find out more about layouts in the docs

dimaMachina commented 1 week ago

this already feat of Nextra v4 https://github.com/shuding/nextra/blob/067d290b4596440dce33259d8a12c16a6e7fc2c0/packages/nextra-theme-docs/src/mdx-components/wrapper/wrapper.client.tsx#L33-L76