feat: add categories and tags page (WIP)
This commit is contained in:
parent
1e7f0f9e4a
commit
00115ad5a0
6 changed files with 104 additions and 0 deletions
|
@ -5,6 +5,8 @@ export const posts = ({ image }) => z.object({
|
|||
description: z.string(),
|
||||
pubDate: z.coerce.date(),
|
||||
updatedDate: z.coerce.date().optional(),
|
||||
categories: z.array(z.string()).optional().default(['uncategorized']),
|
||||
tags: z.array(z.string()).optional().default([]),
|
||||
cover: image().optional(),
|
||||
author: z.string().optional(),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue