all repos — websitemeow @ 0a0bdf06936d21b38c83ffce1aaff761ebea9b59

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