tags and such

This commit is contained in:
2023-03-06 02:58:39 +00:00
parent 74a29aed1a
commit 5e6de8a452
28 changed files with 213 additions and 177 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ import { z, defineCollection } from 'astro:content'
const blogCollection = defineCollection({
schema: z.object({
title: z.string(),
pubDate: z.date(),
pubDate: z.string().transform((str) => new Date(str)),
tags: z.array(z.string()),
}),
})