diff options
| author | Valentin Popov <valentin@popov.link> | 2026-04-09 11:52:31 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-04-09 11:52:31 +0300 |
| commit | 994fb09d050b70204f327874a474e97d342ce006 (patch) | |
| tree | 7ba5e46aaf9cd28fe551bcedd0a528fb19899281 /src/content.config.ts | |
| parent | 7dd43ae74ecb9fe443d5102e290e39612aa7e9ec (diff) | |
| parent | f90592d8a106bea418cbd3d8bce9c2d86029f93c (diff) | |
| download | popov.link-994fb09d050b70204f327874a474e97d342ce006.tar.xz popov.link-994fb09d050b70204f327874a474e97d342ce006.zip | |
Merge pull request 'fix(deps): update dependency astro to v6' (!21) from renovate/major-astro-monorepo into master
Reviewed-on: https://code.popov.link/valentineus/popov.link/pulls/21
Diffstat (limited to 'src/content.config.ts')
| -rw-r--r-- | src/content.config.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/content.config.ts b/src/content.config.ts new file mode 100644 index 0000000..189848c --- /dev/null +++ b/src/content.config.ts @@ -0,0 +1,18 @@ +import { defineCollection } from "astro:content"; +import { glob } from "astro/loaders"; +import { z } from "astro/zod"; + +const blog = defineCollection({ + loader: glob({ pattern: "**/*.md", base: "./src/content/blog" }), + schema: z.object({ + basedOn: z.optional(z.string()), + dateModified: z.coerce.date(), + datePublished: z.coerce.date(), + description: z.string(), + draft: z.optional(z.boolean()), + lang: z.string(), + title: z.string(), + }), +}); + +export const collections = { blog }; |
