diff --git a/src/content/config.ts b/src/content/config.ts new file mode 100644 index 0000000..6328844 --- /dev/null +++ b/src/content/config.ts @@ -0,0 +1,11 @@ +// 1. Import utilities from `astro:content` +import { defineCollection } from "astro:content"; +// 2. Define your collection(s) +const postsCollection = defineCollection({ + type: "data", +}); +// 3. Export a single `collections` object to register your collection(s) +// This key should match your collection directory name in "src/content" +export const collections = { + posts: postsCollection, +};