static/admin: initial working DecapCMS admin page

uses our very own custom Gitea instance at https://git.scbn.ch !
This commit is contained in:
Diego Joss
2025-06-03 22:05:55 +02:00
parent 0871375ca1
commit f43da2f1b1
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,11 @@
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"
@ -11,4 +16,10 @@ collections:
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" }

View File

@ -7,6 +7,6 @@
<title>Content Manager</title>
</head>
<body>
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>