2024-08-18 19:06:50 +02:00
|
|
|
---
|
|
|
|
|
import { getCollection } from "astro:content";
|
|
|
|
|
|
|
|
|
|
export async function getStaticPaths() {
|
2026-01-07 03:03:42 +01:00
|
|
|
const postEntries = await getCollection("blog");
|
2024-08-18 19:06:50 +02:00
|
|
|
return postEntries.map((entry) => ({
|
|
|
|
|
params: { slug: entry.slug },
|
|
|
|
|
props: { entry },
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { entry } = Astro.props;
|
|
|
|
|
const { Content } = await entry.render();
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<Content />
|