diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..d37cfb9 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,41 @@ +backend: + name: gitea + repo: StartIT/web.start-it.nl # owner/repo exact zoals in Gitea + branch: main + app_id: YOUR_GITEA_CLIENT_ID # hier je echte Client ID invullen + 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 + +media_folder: static/img # waar uploads in je repo terecht komen +public_folder: /img # hoe die paden op de site heten + +# voorbeeld: een simpele 'pages' collectie +collections: + - name: "pages" + label: "Pagina's" + label_singular: "Pagina" + folder: "content" # of preciezer: bijv. "content/pages" + create: true + format: "frontmatter" + extension: "md" + slug: "{{slug}}" + fields: + - { label: "Titel", name: "title", widget: "string" } + - { label: "Datum", name: "date", widget: "datetime", required: false } + - { label: "Body", name: "body", widget: "markdown" } + +backend: + name: gitea + repo: StartIT/web.start-it.nl + branch: main + + # Belangrijk: hier komt jouw Client ID: + app_id: YOUR_CLIENT_ID_HERE + + 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 + +media_folder: static/img +public_folder: /img diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..ca9b79e --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,13 @@ + + + + + Content Manager + + + + + + + +