Setup Decap CMS and Content Collection for Biodiversity

This commit is contained in:
Felix Brabetz
2026-05-16 02:18:39 +02:00
parent f5bc182a06
commit afe6e2ebe9
6 changed files with 125 additions and 45 deletions
+28
View File
@@ -0,0 +1,28 @@
backend:
name: gitea # ACHTUNG: Wenn du GitLab nutzt, ändere das in 'gitlab'
repo: fberger/brabetz-homepage
api_root: https://git.brabros.de/api/v1 # Für GitLab: https://git.brabros.de/api/v4
branch: main
media_folder: "src/images"
public_folder: "src/images"
collections:
- name: "pages"
label: "Seiten"
files:
- file: "src/content/biodiversity/biotope.md"
label: "Biotop-Bausteine"
name: "biotope"
fields:
- { label: "Titel", name: "title", widget: "string" }
- { label: "Beschreibung", name: "description", widget: "string" }
- label: "Items"
name: "items"
widget: "list"
fields:
- { label: "Titel", name: "title", widget: "string" }
- { label: "Beschreibung", name: "description", widget: "text" }
- { label: "Technik", name: "technique", widget: "string" }
- { label: "Location", name: "location", widget: "string" }
- { label: "Icon", name: "icon", widget: "string" }
+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>Content Manager</title>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</head>
<body>
</body>
</html>