kjelsrud.dev/src/content/config.ts

10 lines
231 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
import { defineCollection, z } from 'astro:content';
2023-12-10 00:17:01 +01:00
import { rssSchema } from '@astrojs/rss';
2023-07-19 21:31:30 +02:00
const blog = defineCollection({
// Type-check frontmatter using a schema
2023-12-10 00:17:01 +01:00
schema: rssSchema
2023-07-19 21:31:30 +02:00
});
export const collections = { blog };