mirror of
https://github.com/maciejpedzich/cats-album.git
synced 2024-11-27 22:35:47 +01:00
Increase the description's character limit
This commit is contained in:
parent
1f5a65d977
commit
dda92399a7
@ -3,12 +3,12 @@ import { z, defineCollection } from 'astro:content';
|
|||||||
const cats = defineCollection({
|
const cats = defineCollection({
|
||||||
type: 'data',
|
type: 'data',
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
name: z.string(),
|
name: z.string().max(20),
|
||||||
dateAdded: z
|
dateAdded: z
|
||||||
.string()
|
.string()
|
||||||
.or(z.date())
|
.or(z.date())
|
||||||
.transform((val) => new Date(val)),
|
.transform((val) => new Date(val)),
|
||||||
description: z.string().max(250),
|
description: z.string().max(300),
|
||||||
image: z.object({
|
image: z.object({
|
||||||
src: z.string(),
|
src: z.string(),
|
||||||
alt: z.string()
|
alt: z.string()
|
||||||
|
Loading…
Reference in New Issue
Block a user