update imported files
This commit is contained in:
parent
ed0d837f9f
commit
c8cbfdadb2
24 changed files with 34 additions and 16 deletions
26
config.ts
Normal file
26
config.ts
Normal 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,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue