1
0
Fork 0

wip(org): Added blog post pages

This commit is contained in:
Joost De Cock 2022-05-30 15:36:39 +02:00
parent 8b7ea76325
commit e47f47cf99
5 changed files with 142 additions and 24 deletions

View file

@ -38,12 +38,13 @@ const MdxWrapper = ({mdx, app, t, components={}}) => {
// React component for MDX content
const MdxContent = mdxModule ? mdxModule.default : Fragment
return (
<div className="text-primary mdx max-w-prose text-base-content max-w-prose text-lg lg:text-xl">
{mdxModule && <MdxContent components={allComponents}/>}
<PrevNext app={app} />
</div>
)
return app
? (
<div className="text-primary mdx max-w-prose text-base-content max-w-prose text-lg lg:text-xl">
{mdxModule && <MdxContent components={allComponents}/>}
<PrevNext app={app} />
</div>
) : <MdxContent components={allComponents}/>
}
export default MdxWrapper