24 lines
532 B
TypeScript
24 lines
532 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
|
|
const updates = defineCollection({
|
|
type: 'content',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
date: z.coerce.date(),
|
|
author: z.string().default('Fenja AI'),
|
|
summary: z.string(),
|
|
}),
|
|
});
|
|
|
|
const meetings = defineCollection({
|
|
type: 'content',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
date: z.coerce.date(),
|
|
time: z.string(),
|
|
location: z.string(),
|
|
attendees: z.string().optional(),
|
|
}),
|
|
});
|
|
|
|
export const collections = { updates, meetings };
|