2023-08-16 23:55:57 +08:00
|
|
|
import { Authors, allAuthors } from 'contentlayer/generated';
|
|
|
|
import { MDXLayoutRenderer } from 'pliny/mdx-components';
|
|
|
|
import AuthorLayout from '@/layouts/AuthorLayout';
|
|
|
|
import { coreContent } from 'pliny/utils/contentlayer';
|
|
|
|
import { genPageMetadata } from 'app/seo';
|
2023-08-16 23:29:22 +08:00
|
|
|
|
2023-08-16 23:55:57 +08:00
|
|
|
export const metadata = genPageMetadata({ title: 'About' });
|
2023-08-16 23:29:22 +08:00
|
|
|
|
|
|
|
export default function Page() {
|
2023-08-16 23:55:57 +08:00
|
|
|
const author = allAuthors.find((p) => p.slug === 'default') as Authors;
|
|
|
|
const mainContent = coreContent(author);
|
2023-08-16 23:29:22 +08:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<AuthorLayout content={mainContent}>
|
|
|
|
<MDXLayoutRenderer code={author.body.code} />
|
|
|
|
</AuthorLayout>
|
|
|
|
</>
|
2023-08-16 23:55:57 +08:00
|
|
|
);
|
2023-08-16 23:29:22 +08:00
|
|
|
}
|