diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-14 22:21:47 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-14 22:21:47 +0100 |
| commit | 54dab1e00b38693e96c801d0c5a020693a35bbda (patch) | |
| tree | e0c61e6b694a1e8c8a6618671a9f5c738e6e621f /src/content.config.ts | |
| parent | 847294bbf1b4bfa213b7ac03757aa2cf444c31bd (diff) | |
Refactor SCSS imports to use @use syntax, update portfolio entries, and add new projects
Diffstat (limited to 'src/content.config.ts')
| -rw-r--r-- | src/content.config.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/content.config.ts b/src/content.config.ts index 539db1c..1c24b41 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -2,14 +2,24 @@ import { glob } from 'astro/loaders'; import { defineCollection, z } from 'astro:content'; const blog = defineCollection({ - loader: glob({ pattern: '**/*.md', base: "src/data/blog" }), + loader: glob({ pattern: '**/*.{md,mdx}', base: "src/data/blog" }), schema: z.object({ title: z.string(), metaDescription: z.string(), - publishedAt: z.date() + publishedAt: z.coerce.date() }) }); +const portfolio = defineCollection({ + loader: glob({ pattern: '**/*.{md,mdx}', base: "src/data/portfolio" }), + schema: z.object({ + title: z.string(), + description: z.string(), + technologies: z.array(z.string()) + }) +}) + export const collections = { - blog + blog, + portfolio }; |
