From 3a3de403204c218bd0441c22d5721765b2058de4 Mon Sep 17 00:00:00 2001 From: Milad Vafaeifard Date: Thu, 25 Jul 2024 17:36:21 +0200 Subject: [PATCH] Fix tags in config --- src/content/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/config.ts b/src/content/config.ts index bcc3fc1..709db86 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -8,9 +8,9 @@ const blogCollection = defineCollection({ speaker: z.string().optional(), pubDate: z.coerce.date(), updatedDate: z.coerce.date().optional(), - thumbnail: z.string(), + thumbnail: z.string().optional(), alt: z.string().optional(), - tags: z.array(z.string()).optional(), + tags: z.array(z.string()).optional().default([]), }) });