This commit is contained in:
Adrian Altner 2026-04-21 01:26:19 +02:00
commit f9ab31c247
62 changed files with 7894 additions and 0 deletions

View file

@ -0,0 +1,18 @@
---
import type { CollectionEntry } from 'astro:content';
import CategoryDetailPage from '~/components/CategoryDetailPage.astro';
import { entrySlug, getCategoriesByLocale } from '~/i18n/posts';
export async function getStaticPaths() {
const categories = await getCategoriesByLocale('en');
return categories.map((category) => ({
params: { slug: entrySlug(category) },
props: { category },
}));
}
type Props = { category: CollectionEntry<'categories'> };
const { category } = Astro.props;
---
<CategoryDetailPage locale="en" category={category} />