1
0

Start implementation for blog posts

This commit is contained in:
Michael Rieger
2025-10-20 09:13:19 +02:00
parent 39e20d9816
commit 1361095a76
11 changed files with 150 additions and 27 deletions
+13
View File
@@ -0,0 +1,13 @@
// 1. Import utilities from `astro:content`
import { defineCollection, z } from 'astro:content';
// 2. Import loader(s)
import { glob, file } from 'astro/loaders';
// 3. Define your collection(s)
const blog = defineCollection({
loader: glob({ pattern: "**/*.md", base: "./src/data/blog" }),
});
// 4. Export a single `collections` object to register your collection(s)
export const collections = { blog };