website can get pubDate from filename instead of frontmatter

This commit is contained in:
2026-04-13 08:37:56 +01:00
parent cf6dbc2aa1
commit 1a64bce2fb
4 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ const blog = defineCollection({
title: z.string(),
hidden: z.optional(z.boolean()),
description: z.optional(z.string()),
pubDate: z.date(),
pubDate: z.optional(z.date()),
updatedDate: z.optional(z.date()),
}),
});