feat: dark mode toggle

This commit is contained in:
Alejandro Laguna
2025-08-22 17:04:23 +02:00
parent cc8794a13f
commit b1929aa216
11 changed files with 186 additions and 52 deletions

16
src/content.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defineCollection, z } from 'astro:content';
import { glob } from 'astro/loaders';
const workshop = defineCollection({
loader: glob({ base: './src/content/workshop', pattern: '**/*.{md,mdx}' }),
schema: ({ image }) =>
z.object({
title: z.string(),
description: z.string(),
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: image().optional(),
}),
});
export const collections = { workshop };