nextra
nextra copied to clipboard
How can I access the pages folder when I developing a theme?
I want to define a directory or file, everything inside will be the extra part of my layout.
I have used children for another part of my layout, so using children is not an option
I want to do the following:
const extraPart: React.ReactNode | null = someWay2AccessPage('/specityPath');
const HomepageLayout = ({ children }: { children: React.ReactNode }) => {
return <div>
{children}
// ...many other codes
{extraPart}
</div>
}