update metadata config and delete old files

This commit is contained in:
Alexander Navarro 2023-09-09 11:26:49 -03:00
parent 2741cec3db
commit efff561a80
7 changed files with 15 additions and 228 deletions

View file

@ -1,23 +1,24 @@
import { z, defineCollection } from "astro:content";
import { z, defineCollection } from 'astro:content';
// AstroJS collection configuration
const games = defineCollection({
type: "content",
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",
title: z.string(),
release: z.coerce.date(),
developers: z.array(z.string()),
genres: z.array(z.string()),
status: z.enum([
'Backlog',
'On Line',
'Playing',
'Played',
'Wishlist',
'Want to Replay',
'Always Playable',
]),
Times_Played: z.number(), banner: z.optional(z.string().url()),
times_played: z.number(),
}),
});