feat: ajout Decap CMS
Build and Deploy Hugo / build (push) Has been cancelled

This commit is contained in:
2026-05-21 15:17:36 +02:00
parent 50b4f7c8b3
commit 1b8890f192
2 changed files with 93 additions and 0 deletions
+81
View File
@@ -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
+12
View File
@@ -0,0 +1,12 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Administration du blog</title>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</head>
<body>
</body>
</html>