New: Admin section

This commit is contained in:
2026-02-25 10:13:50 +01:00
parent 8524fb5abc
commit f1aedfb218
4 changed files with 108 additions and 44 deletions

39
static/admin/config.yml Normal file
View File

@@ -0,0 +1,39 @@
backend:
name: gitea
repo: VanEmous/Website
branch: main
app_id: e101b13a-70b5-474b-88de-fd4254408a68
api_root: https://git.start-it.nl/api/v1
base_url: https://git.start-it.nl
auth_endpoint: https://git.start-it.nl/login/oauth/authorize
local_backend: true
auth_type: implicit
media_folder: "static/img"
public_folder: "/img"
collections:
- name: "pages"
label: "Pagina's"
files:
- file: "content/_index.md"
label: "Homepagina"
name: "home"
fields:
- { label: "Titel", name: "title", widget: "string" }
- label: "Mogelijkheden Header"
name: "possibilities_header"
widget: "object"
fields:
- { label: "Titel", name: "title", widget: "string" }
- { label: "Intro Tekst", name: "text", widget: "text" }
- label: "Mogelijkheden Kaarten"
name: "possibilities_cards"
widget: "list"
fields:
- { label: "Kaart Titel", name: "title", widget: "string" }
- { label: "Omschrijving", name: "description", widget: "text" }
- { label: "Link naar", name: "link", widget: "string" }
- { label: "Afbeelding", name: "image", widget: "image" }

11
static/admin/index.html Normal file
View File

@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
</head>
<body>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>