page.tsx

1import { HomePage } from '@/components/home'
2import { generateMeta } from '@/lib/generateMeta'
3import { Metadata } from 'next'
4import { getCachedContent } from '@/lib/content'
5
6export const metadata: Metadata = generateMeta({
7	title: 'Home',
8})
9
10export default function Home() {
11	// Get the about page content
12	const aboutContent = getCachedContent('pages').find(
13		(page) => page.slug === 'about',
14	)
15
16	if (!aboutContent) {
17		return <div>About content not found</div>
18	}
19
20	return <HomePage aboutContent={aboutContent?.content} />
21}
22