diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 18:21:12 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 19:11:50 +0100 |
| commit | 51aa63873681216026d518cde4abeca307818a4b (patch) | |
| tree | d57b19a6ed8ce2b7303191a668de6ed7f878e7a8 /src/content.config.ts | |
| parent | 4ed3a82a8b8f111bed88559bf8d601bb7d947df9 (diff) | |
Add infinite posts downloads
Diffstat (limited to 'src/content.config.ts')
| -rw-r--r-- | src/content.config.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/content.config.ts b/src/content.config.ts index 4b7b230..2ae9fbf 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -41,12 +41,21 @@ const micro = defineCollection({ loader: pleromaLoader({ instanceUrl: "https://social.craftknight.com", username: "dawid", - maxPosts: 50, + maxPosts: -1, // Fetch all posts allowedTags: ["#miniblog", "#vanlife", "#microblog", "#giereczkowo"], }), schema: baseSchema.extend({ description: z.string().optional(), publishDate: z.date().or(z.string().transform((val) => new Date(val))), + sourceUrl: z.string().optional(), + attachments: z + .array( + z.object({ + url: z.string(), + type: z.string(), + }), + ) + .optional(), }), }); |
