diff --git a/static/admin/config.yml b/static/admin/config.yml index f06aa03..8d33286 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -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" } diff --git a/static/admin/index.html b/static/admin/index.html index 4441a60..b7edc75 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -7,6 +7,6 @@