feat: multi-authors within one article support

This commit is contained in:
草师傅 2025-07-22 18:03:12 +08:00
parent 0eef3d8d05
commit 98d23e7c94
Signed by: gb
GPG key ID: 43330A030E2D6478
4 changed files with 14 additions and 12 deletions

View file

@ -10,5 +10,5 @@ export const posts = ({ image }) => z.object({
categories: z.array(z.string()).default(['uncategorized']),
tags: z.array(z.string()).optional(),
cover: image().optional(),
author: reference('authors').optional(),
author: z.union([z.array(reference('authors')), reference('authors')]).optional(),
});

View file

@ -2,6 +2,9 @@
title: 'My Terminal Setup'
description: 'A walkthrough of my current terminal configuration'
pubDate: '2025-06-08'
author:
- 'Glados'
- 'Wheatley'
---
![cover from mohammad-rahmani-oXlXu2qukGE-unsplash](./demo.png)
Here's my current terminal setup: