From 26ffc44ee72522891b4fdacac15134dfcf9c4859 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 12 Jan 2026 22:27:17 +0100 Subject: Rework how tags are working and make them native --- src/content.config.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content.config.ts') diff --git a/src/content.config.ts b/src/content.config.ts index bee2f8c..e7729e3 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -49,6 +49,7 @@ const micro = defineCollection({ publishDate: z.date().or(z.string().transform((val) => new Date(val))), sourceUrl: z.string().optional(), language: z.string().optional(), + tags: z.array(z.string()).default([]).transform(removeDupsAndLowerCase), author: z .object({ username: z.string(), -- cgit v1.2.3