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

View file

@ -3,6 +3,10 @@ title: 'The Art of Minimalism'
description: 'Thoughts on minimalism in design and code'
pubDate: '2025-06-05'
author: 'Wheatley'
tags:
- 'design'
- 'code'
- 'minimalism'
---
Minimalism isn't just about having less, it's about making room for what matters.