import { metadata } from '@/app/metadata' import { TableOfContents } from '@/components/post/TableOfContents' import { getPostBySlug } from '@/lib/posts' import type { Metadata } from 'next' export async function generateMetadata(): Promise { const { meta } = await getPostBySlug('about', 'content/pages') return { title: `${meta.title} | ${metadata.title!.toString()}`, description: meta.description, openGraph: { type: 'website', title: `${meta.title} | ${metadata.title!.toString()}`, description: meta.description, url: process.env.SITE_URL + `/about`, siteName: metadata.title!.toString(), }, } } export default async function Post() { const { meta, content, tableOfContents } = await getPostBySlug('about', 'content/pages') return (

{meta.title}

{meta.description}

{content}
) }