blob: 049465c9f819dbc4bd57ef63b8a86650c0569971 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { defineCollection, z } from 'astro:content';
export const collections = {
work: defineCollection({
schema: z.object({
title: z.string(),
description: z.string(),
publishDate: z.coerce.date(),
tags: z.array(z.string()),
img: z.string(),
img_alt: z.string().optional(),
}),
}),
};
|