From 181547a25213bee8a20002e07344b957386c4d0f Mon Sep 17 00:00:00 2001 From: Pauline Date: Sun, 26 Nov 2023 22:55:04 -0500 Subject: feat(build): transfer everything to esm/ts --- apps/website/src/content/config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apps/website/src/content/config.ts (limited to 'apps/website/src/content/config.ts') diff --git a/apps/website/src/content/config.ts b/apps/website/src/content/config.ts new file mode 100644 index 0000000..8d68c0e --- /dev/null +++ b/apps/website/src/content/config.ts @@ -0,0 +1,13 @@ +import { defineCollection, z } from 'astro:content'; + +const blog = defineCollection({ + schema: z.object({ + title: z.string(), + description: z.string(), + pubDate: z.coerce.date(), + updatedDate: z.coerce.date().optional(), + heroImage: z.string().optional(), + }), +}); + +export const collections = { blog }; -- cgit