feat: add summary field in articles

This commit is contained in:
草师傅 2025-07-22 15:53:57 +08:00
parent 74a8bbc72a
commit 0eef3d8d05
Signed by: gb
GPG key ID: 43330A030E2D6478
3 changed files with 13 additions and 4 deletions

View file

@ -1,8 +1,10 @@
import { z, reference } from 'astro:content';
// @ts-ignore
export const posts = ({ image }) => z.object({
title: z.string(),
description: z.string(),
summary: z.string().optional(),
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
categories: z.array(z.string()).default(['uncategorized']),