feat: add categories and tags page (WIP)

This commit is contained in:
grassblock 2025-05-28 22:19:01 +08:00
parent 1e7f0f9e4a
commit 00115ad5a0
6 changed files with 104 additions and 0 deletions

View file

@ -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(),
});