Something went wrong. Try again.
My blog and portfolio (mirror of https://git.skye.codes/skyecodes/website) skye.codes
Something went wrong. Try again.
123456789101112131415161718192021222324252627import {defineCollection, z} from 'astro:content';import {glob} from "astro/loaders";
const blog = defineCollection({ loader: glob({base: './src/content/blog', pattern: '**/*.{md,mdx}'}), schema: z.object({ title: z.string(), description: z.string(), date: z.coerce.date(), draft: z.boolean().optional() }),});
const projects = defineCollection({ loader: glob({base: './src/content/projects', pattern: '**/*.{md,mdx}'}), schema: z.object({ title: z.string(), description: z.string(), date: z.coerce.date(), draft: z.boolean().optional(), demoURL: z.string().optional(), repoURL: z.string().optional() }),});
export const collections = {blog, projects};