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 };
|