From 7eff3fde5720eb23449e2f8c8ea0b8218efe4dde Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 4 Sep 2024 21:16:37 +0000 Subject: Initial Astro project --- src/content/config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/content/config.ts (limited to 'src/content/config.ts') diff --git a/src/content/config.ts b/src/content/config.ts new file mode 100644 index 0000000..00f60c9 --- /dev/null +++ b/src/content/config.ts @@ -0,0 +1,13 @@ +import { defineCollection, z } from "astro:content"; + +const blog = defineCollection({ + type: "content", + schema: z.object({ + author: z.string(), + description: z.string(), + pubDate: z.coerce.date(), + title: z.string(), + }), +}); + +export const collections = { blog }; -- cgit v1.2.3