nextra icon indicating copy to clipboard operation
nextra copied to clipboard

How can I access the pages folder when I developing a theme?

Open jellli opened this issue 2 years ago • 0 comments

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>
}

jellli avatar Dec 22 '23 02:12 jellli