refactor: use metadata export for seo

This commit is contained in:
Timothy Lin
2023-07-08 21:03:46 +08:00
parent 1dfa80e8bd
commit b6dac68f61
10 changed files with 227 additions and 91 deletions

View File

@ -2,6 +2,9 @@ import { Authors, allAuthors } from 'contentlayer/generated'
import { Mdx } from '@/components/MDXComponents'
import AuthorLayout from '@/layouts/AuthorLayout'
import { coreContent } from 'pliny/utils/contentlayer'
import { genPageMetadata } from 'app/seo'
export const metadata = genPageMetadata({ title: 'About' })
export default function Page() {
const author = allAuthors.find((p) => p.slug === 'default') as Authors