Decap CMS OAuth
This commit is contained in:
41
static/admin/config.yml
Normal file
41
static/admin/config.yml
Normal file
@@ -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
|
||||
13
static/admin/index.html
Normal file
13
static/admin/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Content Manager</title>
|
||||
<meta name="robots" content="noindex" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
</head>
|
||||
<body>
|
||||
<!-- Decap CMS bundle via CDN -->
|
||||
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user