35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
# Sveltia CMS config — backend: local Gitea (demo). Editors log in via Gitea OAuth
|
|
# (PKCE, no client secret); edits are committed to the ctao/portal repo in Gitea.
|
|
# Local-only setup: for phone demos switch base_url/api_root to a cloudflared
|
|
# tunnel URL and update the OAuth redirect_uri + Gitea ROOT_URL accordingly.
|
|
backend:
|
|
name: gitea
|
|
repo: ctao/portal
|
|
branch: main
|
|
base_url: http://localhost:3010
|
|
api_root: http://localhost:3010/api/v1
|
|
app_id: 73c02331-8842-4ddc-b769-8b09c3c422fb
|
|
|
|
media_folder: "public/uploads"
|
|
public_folder: "/uploads"
|
|
|
|
collections:
|
|
- name: news
|
|
label: "Newsy"
|
|
label_singular: "Artykuł"
|
|
folder: "src/content/news"
|
|
create: true
|
|
slug: "{{slug}}"
|
|
extension: md
|
|
format: frontmatter
|
|
summary: "{{title}} · {{date}}"
|
|
fields:
|
|
- { name: title, label: "Tytuł", widget: string }
|
|
- { name: description, label: "Krótki opis", widget: text }
|
|
- { name: date, label: "Data", widget: datetime, date_format: "YYYY-MM-DD", time_format: false }
|
|
- { name: category, label: "Kategoria", widget: string, default: "news" }
|
|
- { name: author, label: "Autor", widget: string, default: "CTAO" }
|
|
- { name: cover, label: "Okładka", widget: image, required: false }
|
|
- { name: draft, label: "Szkic (nieopublikowany)", widget: boolean, default: false }
|
|
- { name: body, label: "Treść", widget: markdown }
|