Fix up first version and add Prettier and Docker

This commit is contained in:
Bad Manners 2024-03-20 11:34:09 -03:00
parent 09a1919d36
commit 324050ee38
87 changed files with 2210 additions and 822 deletions

View file

@ -1,15 +1,15 @@
---
import { type CollectionEntry, getCollection } from 'astro:content';
import GameLayout from '../../layouts/GameLayout.astro';
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 => ({
const games = await getCollection("games");
return games.map((story) => ({
params: { slug: story.slug },
props: story,
}));
}
type Props = CollectionEntry<'games'>
type Props = CollectionEntry<"games">;
const story = Astro.props;
const { Content } = await story.render();