From 9d81cb4b875538e54aea6be70f973442be55b0ea Mon Sep 17 00:00:00 2001 From: aleidk Date: Sat, 11 Nov 2023 18:48:24 -0300 Subject: [PATCH] Add blog config for astro --- config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.ts b/config.ts index 3ffabf9..c2ce508 100644 --- a/config.ts +++ b/config.ts @@ -22,6 +22,18 @@ const games = defineCollection({ }), }); +const blog = defineCollection({ + type: 'content', + schema: z.object({ + title: z.string(), + draft: z.boolean().optional(), + tags: z.array(z.string()).optional(), + published_at: z.coerce.date().optional(), + updated_at: z.coerce.date().optional(), + }), +}); + export const collections = { games, + blog, };