Commit 3d9e07e

HPCesia <me@hpcesia.com>
2026-09-26 15:06:01
posts: set author to SITE_CONFIG.author by default
1 parent ecf2cb2
Changed files (1)
src/content.config.ts
@@ -26,7 +26,7 @@ const typCollection = (base: string) => (defineCollection({
   schema: z.object({
     title: z.string(),
     slug: z.string().optional(),
-    author: z.string().optional(),
+    author: z.string().default(SITE_CONFIG.author),
     desc: z.any().optional(),
     date: z.string().transform((str) => {
       const match = str.match(