Add blog series support and first post
CI / ci (push) Successful in 26s
CI / ci (pull_request) Successful in 29s
Docker / docker (pull_request) Successful in 17s

- Add optional series field to blog collection schema (name, part)
- Update blog route to collect and sort series posts, boost related
  scoring when series matches, and render a series section with styles
  and responsive tweaks
- Add "Coffee & Code #1" blog post markdown for the new series
This commit is contained in:
2026-03-07 13:38:46 +01:00
parent 814f292427
commit f963fcb6bb
3 changed files with 307 additions and 4 deletions
+6
View File
@@ -7,6 +7,12 @@ const blog = defineCollection({
description: z.string(),
pubDate: z.coerce.date(),
tags: z.array(z.string()).default([]),
series: z
.object({
name: z.string(),
part: z.number().int().positive(),
})
.optional(),
draft: z.boolean().optional().default(false),
}),
});