From c08fdbf7fdcd2e7565c73a9b3e9dfaedf4c725d9 Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Sun, 24 Nov 2024 09:42:51 -0500 Subject: [PATCH] begin `content` config --- src/content/config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/content/config.ts diff --git a/src/content/config.ts b/src/content/config.ts new file mode 100644 index 0000000..238d31a --- /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 blogCollection = defineCollection({ + /* ... */ +}); +// 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 = { + blog: blogCollection, +};