refactor: move pubDate to date in posts front matter
This commit is contained in:
parent
123da1747f
commit
b2270003bd
15 changed files with 21 additions and 22 deletions
|
@ -5,8 +5,7 @@ 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(),
|
||||
date: z.coerce.date(),
|
||||
categories: z.array(z.string()).default(['uncategorized']),
|
||||
tags: z.array(z.string()).optional(),
|
||||
cover: image().optional(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue