feat(books): 五书策展字段与泥潭作者;顺带入 T1 终端页文件
- schema 加 description/bookAuthor 可选;五书补字段(一句话策展评语
+ 原书作者;泥潭=刘楚昕 用户提供)
- 任务包入 T5 /opensource 独立页(用户追加需求,方案 A 复用扩展)
- 因 add -A 顺带包含 op-artalk 车道已自验 12/12 的 src/pages/terminal.astro
(T1 交付物,验收随后)
验证: grep bookAuthor content/posts/*.md 五篇命中;schema 可选字段
对既有构建零破坏
Spec: 2026-10-25_add-terminal-books-admin
Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
b789d30a5d
commit
3bd8369eda
12 files changed
+4146
No files matched your search
@@ -26,6 +26,10 @@ const postsSchema = z.object({
|
||||
tags: z.array(z.string()),
|
||||
/** 情绪色,仅书评轨使用;#RRGGBB */
|
||||
mood: z.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),
|
||||
/** 一句话策展评语(/books 书架卡;缺省回退正文首段) */
|
||||
description: z.string().optional(),
|
||||
/** 原书作者(书架卡署名) */
|
||||
bookAuthor: z.string().optional(),
|
||||
draft: z.boolean().optional(),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user