diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 22:27:17 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 22:27:17 +0100 |
| commit | 26ffc44ee72522891b4fdacac15134dfcf9c4859 (patch) | |
| tree | 0a4014f93f35b348f9e5062904e17d724f228a69 /src/content.config.ts | |
| parent | 686ccbfd2ed51723f4df79ba0b976e0f5fafce2f (diff) | |
Rework how tags are working and make them native
Diffstat (limited to 'src/content.config.ts')
| -rw-r--r-- | src/content.config.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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(), |
