upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit 900669acfd - Show all commits

View File

@ -1,6 +1,4 @@
import { MDXRemote } from 'next-mdx-remote' import { MDXLayoutRenderer } from '@/components/MDXComponents'
import { MDXComponents } from '@/components/MDXComponents'
import AuthorLayout from '@/layouts/AuthorLayout'
import { getFileBySlug } from '@/lib/mdx' import { getFileBySlug } from '@/lib/mdx'
export async function getStaticProps() { export async function getStaticProps() {
@ -12,8 +10,10 @@ export default function About({ authorDetails }) {
const { mdxSource, frontMatter } = authorDetails const { mdxSource, frontMatter } = authorDetails
return ( return (
<AuthorLayout frontMatter={frontMatter}> <MDXLayoutRenderer
<MDXRemote {...mdxSource} components={MDXComponents} /> layout={frontMatter.layout || 'AuthorLayout'}
</AuthorLayout> mdxSource={mdxSource}
frontMatter={frontMatter}
/>
) )
} }