upstream #1
@ -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}
|
||||||
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user