From 6d3da9537200e4029d3c9e1b6140f601642f26da Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 12 Nov 2024 22:33:11 +0200 Subject: Backup --- src/content/config.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/content/config.ts') diff --git a/src/content/config.ts b/src/content/config.ts index 33140f3..17aeedb 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -3,5 +3,10 @@ import { defineCollection, z } from "astro:content"; export const collections = { blogs: defineCollection({ type: "content", + schema: z.object({ + title: z.string(), + description: z.string().optional(), + date: z.date(), + }), }), }; -- cgit v1.3.1