import { defineCollection, z } from "astro:content"; import { glob } from "astro/loaders"; export type bookmark = { name: string; url: string; filetype?: ".gif" | ".png"; }; const blog = defineCollection({ loader: glob({ pattern: "**/*.md", base: "./src/content/blog" }), schema: z.object({ title: z.string(), bio: z.string(), pub: z.date(), }), }); export const collections = { blog };