From 5fab0381b308eb5a1c837ffdd5e0ddd757e769d3 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 24 Jan 2024 22:50:02 -0500 Subject: Starting to work on blog --- src/content/config.ts | 16 ++++++++++++++++ 1 file changed, 16 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..694e87d --- /dev/null +++ b/src/content/config.ts @@ -0,0 +1,16 @@ +import { defineCollection, z } from "astro:content"; +import { rssSchema } from '@astrojs/rss'; + +const blogCollection = defineCollection({ + type: 'content', + schema: z.object({ + title: z.string(), + description: z.string(), + date: z.date(), + tags: z.array(z.string()), + }), +}); + +export const collections = { + blog: blogCollection, +}; -- cgit v1.2.3