From 1b8890f1925fbe42f6edcedda172613222fe4e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Coquillard?= Date: Thu, 21 May 2026 15:17:36 +0200 Subject: [PATCH] feat: ajout Decap CMS --- static/admin/config.yml | 81 +++++++++++++++++++++++++++++++++++++++++ static/admin/index.html | 12 ++++++ 2 files changed, 93 insertions(+) create mode 100644 static/admin/config.yml create mode 100644 static/admin/index.html diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..16fea3f --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,81 @@ +backend: + name: gitea + repo: alois/CoqBlog + branch: main + base_url: https://auth.alocoq.fr/decap + auth_endpoint: /auth + +media_folder: static/img +public_folder: /img + +locale: fr + +collections: + - name: projets + label: Projets + folder: content/projets + create: true + slug: "{{slug}}" + fields: + - label: Titre + name: title + widget: string + - label: Date + name: date + widget: datetime + format: "2006-01-02" + - label: Description + name: description + widget: string + - label: Tags + name: tags + widget: list + default: [] + - label: Image de couverture + name: cover + widget: object + required: false + fields: + - label: Image + name: image + widget: image + required: false + - label: Texte alternatif + name: alt + widget: string + required: false + - label: Brouillon + name: draft + widget: boolean + default: true + - label: Contenu + name: body + widget: markdown + + - name: blog + label: Blog + folder: content/blog + create: true + slug: "{{slug}}" + fields: + - label: Titre + name: title + widget: string + - label: Date + name: date + widget: datetime + format: "2006-01-02" + - label: Description + name: description + widget: string + - label: Tags + name: tags + widget: list + default: [] + - label: Brouillon + name: draft + widget: boolean + default: true + - label: Contenu + name: body + widget: markdown diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..f2d4ee7 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,12 @@ + + + + + + Administration du blog + + + + + +