fix(cms): 修三处后台保存裂缝——新文缺 tags 构建拦截、头像传错嵌套路径、表单与 schema 契约不对齐
- 佩德罗·巴拉莫补必填 tags(read,与等待戈多同口径)——生产构建已被拦(last-good 兜底服务中) - 头像 118a04cd0986b9c5.jpg 从嵌套误传路径(content/site/content/site/assets/)挪到 home.yaml 引用的 content/site/assets/——Sveltia 对 file 集合 media_folder 按文件目录相对解析,content/site/assets 写法翻倍成嵌套;改为 assets - posts/moments 标签表单 required 对齐 schema 必填(z.array 无 default,漏保存即构建失败) 验证: pnpm astro build exit 0(52 页,无 InvalidContentEntryData);config-check 通过 Spec: none (生产构建阻塞的紧急内容修复) Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
1737bf027c
commit
dac34edd9a
3 files changed
+6
-4
No files matched your search
@@ -2,6 +2,8 @@
|
||||
title: 佩德罗·巴拉莫
|
||||
pubDate: 2026-04-25
|
||||
category: reading
|
||||
tags:
|
||||
- read
|
||||
pinned: false
|
||||
mood: '#3bfe04'
|
||||
bookAuthor: 胡安·鲁尔福
|
||||
|
||||
File renamed without changes.
@@ -37,7 +37,7 @@ collections:
|
||||
- { label: 标题, name: title, widget: string }
|
||||
- { label: 日期, name: pubDate, widget: datetime, date_format: 'YYYY-MM-DD', time_format: false, format: 'YYYY-MM-DD' }
|
||||
- { label: 分轨, name: category, widget: select, options: [{label: 阅读, value: reading}, {label: 技术, value: tech}, {label: 照片, value: photo}] }
|
||||
- { label: 标签, name: tags, widget: list, required: false }
|
||||
- { label: 标签, name: tags, widget: list, required: true, hint: '至少一个(可写 read/写作/站点更新等);schema 必填,漏了构建会拦' }
|
||||
- { label: 置顶, name: pinned, widget: boolean, required: false, default: false, hint: '置顶文章排在首页/归档/书架最前;只影响顺序,不改日期、URL 与 RSS 时间语义' }
|
||||
- { label: 情绪色(书评色脊), name: mood, widget: color, required: false, hint: '#RRGGBB,仅阅读轨使用' }
|
||||
- { label: 原书作者, name: bookAuthor, widget: string, required: false }
|
||||
@@ -112,7 +112,7 @@ collections:
|
||||
- label: 标签
|
||||
name: tags
|
||||
widget: list
|
||||
required: false
|
||||
required: true
|
||||
- { label: 置顶, name: pinned, widget: boolean, required: false, default: false, hint: '置顶瞬间排时间线最前(可多置顶,之间按日期倒序);只影响顺序不改日期' }
|
||||
- { label: 隐藏, name: hidden, widget: boolean, required: false, default: false, hint: '隐藏后从时间线移除;评论数据保留在服务端,关掉开关即恢复' }
|
||||
- name: photos
|
||||
@@ -222,7 +222,7 @@ collections:
|
||||
file: content/site/home.yaml
|
||||
format: yaml
|
||||
# 头像上传落 content/site/assets/,yaml 写 ./assets/xxx(Astro 图片管线优化)
|
||||
media_folder: content/site/assets
|
||||
media_folder: assets
|
||||
public_folder: ./assets
|
||||
fields:
|
||||
- label: 身份语
|
||||
@@ -331,7 +331,7 @@ collections:
|
||||
file: content/site/about.yaml
|
||||
format: yaml
|
||||
# 块内图片上传落 content/site/assets/,yaml 写 ./assets/xxx(Astro 图片管线)
|
||||
media_folder: content/site/assets
|
||||
media_folder: assets
|
||||
public_folder: ./assets
|
||||
fields:
|
||||
- label: 整页正文(推荐改这里,方案 A 白纸直编)
|
||||
|
||||
Reference in new issue
Block a user