Initial commit

This commit is contained in:
Bad Manners 2024-03-20 00:56:57 -03:00
commit 09a1919d36
152 changed files with 22845 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
import { type CollectionEntry, getCollection } from 'astro:content';
import GameLayout from '../../layouts/GameLayout.astro';
export async function getStaticPaths() {
const games = await getCollection('games');
return games.map(story => ({
params: { slug: story.slug },
props: story,
}));
}
type Props = CollectionEntry<'games'>
const story = Astro.props;
const { Content } = await story.render();
---
<GameLayout {...story.data}>
<Content />
</GameLayout>