From dda92399a7b163351579d88878c475e056a33aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sun, 3 Sep 2023 18:54:45 +0200 Subject: [PATCH] Increase the description's character limit --- 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 6f680bf..4948336 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -3,12 +3,12 @@ import { z, defineCollection } from 'astro:content'; const cats = defineCollection({ type: 'data', schema: z.object({ - name: z.string(), + name: z.string().max(20), dateAdded: z .string() .or(z.date()) .transform((val) => new Date(val)), - description: z.string().max(250), + description: z.string().max(300), image: z.object({ src: z.string(), alt: z.string()