reorderd stuff, added homepage

This commit is contained in:
2026-03-02 20:55:04 +01:00
parent 245508f81a
commit 67bbc3cf9a
32 changed files with 480 additions and 379 deletions

View File

@@ -0,0 +1,21 @@
---
import { getCollection, render } from 'astro:content';
import BlogPost from '../../../layouts/BlogPost.astro';
export async function getStaticPaths() {
const posts = await getCollection('uni');
return posts.map(post => ({
params: { id: post.id },
props: { post },
}));
}
type Props = CollectionEntry<'blog'>;
const { post } = Astro.props;
const { Content } = await render(post);
---
<BlogPost {...post.data}>
<Content />
</BlogPost>