update imported files

This commit is contained in:
Alexander Navarro 2023-06-26 17:28:11 -04:00
parent ed0d837f9f
commit c8cbfdadb2
24 changed files with 34 additions and 16 deletions

26
config.ts Normal file
View file

@ -0,0 +1,26 @@
import { z, defineCollection } from "astro:content";
// AstroJS collection configuration
const games = defineCollection({
type: "content",
schema: z.object({
Title: z.string(),
Release: z.date(),
Developer: z.string(),
Genres: z.array(z.string()),
Status: z.enum([
"Backlog",
"On Line",
"Playing",
"Played",
"Want to Replay",
"Always Playable",
]),
Times_Played: z.number(), banner: z.optional(z.string().url()),
}),
});
export const collections = {
games,
};