all repos — websitemeow @ b60e2f51b2345d10492cee471824bf70105814ca

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 };