--- import { render } from 'astro:content'; import BaseLayout from '../../layouts/BaseLayout.astro'; import { aboutPathOf, getAboutPages, type AboutPage } from '../../lib/about'; import { pageMeta, useTranslations, type Lang } from '../../lib/i18n'; import { pageCardPath } from '../../lib/social-cards'; export async function getStaticPaths() { const pages = await getAboutPages(); // The language switcher and hreflang links need the other language's slug. const alternates = Object.fromEntries(pages.map((page) => [page.data.language, `${aboutPathOf(page)}/`])); return pages.map((page) => ({ params: { lang: page.data.language, about: page.data.slug }, props: { page, alternates }, })); } interface Props { page: AboutPage; alternates: Record; } const { page: entry, alternates } = Astro.props; const lang = entry.data.language; const t = useTranslations(lang); const page = pageMeta(lang, 'about'); const { Content } = await render(entry); ---

{page.title}