Commit 51bb180

HPCesia <me@hpcesia.com>
2026-09-15 15:39:07
Add optional slug frontmatter attr
1 parent e6503d1
Changed files (1)
src/content.config.ts
@@ -11,6 +11,7 @@ const typCollection = defineCollection({
   }),
   schema: z.object({
     title: z.string(),
+    slug: z.string().optional(),
     author: z.string().optional(),
     desc: z.any().optional(),
     date: z.string().transform((str) => {