static/admin: initial working DecapCMS admin page
uses our very own custom Gitea instance at https://git.scbn.ch !
This commit is contained in:
@ -1,6 +1,11 @@
|
|||||||
backend:
|
backend:
|
||||||
name: gitea
|
name: gitea
|
||||||
repo: scbn/www
|
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
|
publish_mode: simple
|
||||||
media_folder: "static/images/uploads"
|
media_folder: "static/images/uploads"
|
||||||
public_folder: "/images/uploads"
|
public_folder: "/images/uploads"
|
||||||
@ -11,4 +16,10 @@ collections:
|
|||||||
label: "Activités"
|
label: "Activités"
|
||||||
widget: "string"
|
widget: "string"
|
||||||
folder: "content/activite"
|
folder: "content/activite"
|
||||||
|
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
|
||||||
create: true
|
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" }
|
||||||
|
|||||||
@ -7,6 +7,6 @@
|
|||||||
<title>Content Manager</title>
|
<title>Content Manager</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user