chore(spec): 归档 blog-5l——三任务收敛(预览一致性/排版提醒/瞬间置顶隐藏)
Spec: 2026-11-05_blog-5l-admin-preview-moments Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
c5889f960b
commit
b99e6e744b
17 files changed
+406
-17
No files matched your search
@@ -359,6 +359,9 @@ export const collections = {
|
||||
tags: z.array(z.string()),
|
||||
text: z.string().optional(),
|
||||
image: image().optional(),
|
||||
// 5l:与 posts 同语义的置顶/隐藏真字段(瞬间无 tags-hidden 旧写法,纯字段判定)
|
||||
pinned: z.boolean().optional(),
|
||||
hidden: z.boolean().optional(),
|
||||
})
|
||||
// 瞬间的存在性约束:一句话、一张图至少有其一
|
||||
.refine((moment) => moment.text !== undefined || moment.image !== undefined, {
|
||||
|
||||
Reference in new issue
Block a user