feat: add summary field in articles
This commit is contained in:
parent
74a8bbc72a
commit
0eef3d8d05
3 changed files with 13 additions and 4 deletions
|
@ -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']),
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
title: 'The Art of Minimalism'
|
||||
description: 'Thoughts on minimalism in design and code'
|
||||
summary: 'Exploring the principles of minimalism and its application in design and coding practices.'
|
||||
pubDate: '2025-06-05'
|
||||
author: 'Wheatley'
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue