Files
official-site-base/public/admin/config.yml
T
lzy 76d70282b7
build-and-deploy / build (push) Successful in 46s
feat(cms): Sveltia 接生产 Gitea (gitea.shoux.net OAuth)
2026-07-24 01:57:19 +08:00

26 lines
817 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
# Sveltia CMS backend:自建 Giteahttps://gitea.shoux.netOAuth2 PKCE
backend:
name: gitea
repo: root/official-site-base
base_url: https://gitea.shoux.net
api_root: https://gitea.shoux.net/api/v1
app_id: b6fe6225-8700-4599-909e-98a8c5a8defa
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 }