src/content.config.ts (view raw)
1 2 3 4 5 6 7 8 9 10 11 |
import { defineCollection } from "astro:content";
import { glob } from "astro/loaders";
import { ProjectSchema } from "./types";
const projects = defineCollection({
loader: glob({ pattern: "**/*.mdx", base: "./src/content/projects" }),
schema: ProjectSchema,
});
export const collections = { projects };
|