first commit
This commit is contained in:
11
src/content/config.ts
Normal file
11
src/content/config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// @ts-ignore
|
||||
import { defineCollection, z } from 'astro:content';
|
||||
|
||||
const posts = defineCollection({
|
||||
// Type-check frontmatter using a schema
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { posts };
|
||||
Reference in New Issue
Block a user