Files
www/static/admin/config.yml
Diego Joss f43da2f1b1 static/admin: initial working DecapCMS admin page
uses our very own custom Gitea instance at https://git.scbn.ch !
2025-06-03 22:06:32 +02:00

26 lines
863 B
YAML

backend:
name: gitea
repo: scbn/www
branch: main
app_id: 7bb5ea52-1123-4810-818c-370e1a958a7f
api_root: https://git.scbn.ch/api/v1
base_url: https://git.scbn.ch
auth_endpoint: https://git.scbn.ch/login/oauth/authorize
publish_mode: simple
media_folder: "static/images/uploads"
public_folder: "/images/uploads"
site_url: "https://scbn.ch"
locale: fr
collections:
- name: "activite"
label: "Activités"
widget: "string"
folder: "content/activite"
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
create: true
fields:
- { label: "Titre", name: "title", widget: "string" }
- { label: "Date", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD" }
- { label: "Date publication", name: "publishDate", widget: "hidden", default: "{{now}}" }
- { label: "Contenu", name: "body", widget: "markdown" }