Skip to content
Python
238 B
Raw Blame
import {defineCollection,z} from 'astro:content';
import {glob} from 'astro/loaders';
export const collections={
 docs:defineCollection({loader:glob({pattern:'**/*.md',base:'./src/content/docs'}),schema:z.object({title:z.string()})}),
};