diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 20:26:13 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 20:26:13 +0100 |
| commit | 4171c2204fb43f5d7483b8e42432519b69bdef1f (patch) | |
| tree | b40ea138458880aa09c791eb2717f4f5daba700e /src/content.config.ts | |
| parent | 6574383b53da66473013512762761862d26e686e (diff) | |
Add author to rss
Diffstat (limited to 'src/content.config.ts')
| -rw-r--r-- | src/content.config.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content.config.ts b/src/content.config.ts index 032011e..5e15713 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -48,6 +48,14 @@ const micro = defineCollection({ description: z.string().optional(), publishDate: z.date().or(z.string().transform((val) => new Date(val))), sourceUrl: z.string().optional(), + author: z + .object({ + username: z.string(), + displayName: z.string().optional(), + acct: z.string(), + url: z.string().optional(), + }) + .optional(), attachments: z .array( z.object({ |
