Files
official-site-base/public/admin/config.yml
T
lzy 57cdbe1b5b
build-and-deploy / build (push) Successful in 38s
ci: raw workflow + 配置适配华为云部署
2026-07-24 00:54:01 +08:00

25 lines
766 B
YAML

# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
# 本地验证用本地 Gitea(Task 5 起的);生产换真实 Gitea 地址
backend:
name: gitea
repo: root/official-site-base
base_url: http://localhost:3001
api_root: http://localhost:3001/api/v1
media_folder: /public/media
public_folder: /media
collections:
- name: news
label: 新闻动态
label_singular: 新闻
folder: /src/content/news
create: true
slug: '{{slug}}'
fields:
- { label: 标题, name: title, widget: string }
- { label: 日期, name: date, widget: datetime, type: date }
- { label: 分类, name: category, widget: string, default: 未分类 }
- { label: 正文, name: body, widget: richtext }