summaryrefslogtreecommitdiff
path: root/website/src/content.config.ts
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-13 08:37:56 +0100
committerJoe Carstairs <me@joeac.net>2026-04-13 08:37:56 +0100
commit1a64bce2fbf4f8c430672b63c62c6b99c0ac496a (patch)
tree57b53229fea8ac330fe928d2fae6e1ce69a20df6 /website/src/content.config.ts
parentcf6dbc2aa132920b09bfb3693ac4fe11092bc2d6 (diff)
website can get pubDate from filename instead of frontmatter
Diffstat (limited to 'website/src/content.config.ts')
-rw-r--r--website/src/content.config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/src/content.config.ts b/website/src/content.config.ts
index bf331ba..9514c9c 100644
--- a/website/src/content.config.ts
+++ b/website/src/content.config.ts
@@ -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()),
}),
});