From 0afe61add29a93ea8306df35ad9b967fe8e4c9ec Mon Sep 17 00:00:00 2001 From: Firq Date: Thu, 25 Jan 2024 21:23:21 +0100 Subject: [PATCH] Comments --- src/content/config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/config.ts b/src/content/config.ts index d780621..713834d 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,5 +1,6 @@ import { z, defineCollection } from 'astro:content' +// Individual TA entries const entry = z.object({ title: z.string(), link: z.string().url(), @@ -9,12 +10,14 @@ const entry = z.object({ runner: z.string(), }) +// Individual quest info block const quest = z.object({ questTitle: z.string(), description: z.string(), data: z.array(entry) }) +// Basic info block for page const info = z.object({ title: z.string(), releaseDate: z.string().transform((str) => new Date(str)), @@ -22,6 +25,7 @@ const info = z.object({ releaseNumber: z.number().default(1), }) +// Combined ta data collection schema const taData = defineCollection({ type: 'data', schema: z.object({