admin: fix Decap render (script in body, yaml MIME), Gitea OAuth backend + CORS, simple workflow

This commit is contained in:
sam
2026-09-09 07:42:03 +10:00
parent 9ca027c86f
commit 2ec6a358c2
3 changed files with 19 additions and 22 deletions

View File

@@ -4,14 +4,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kontra — Admin</title>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</head>
<body>
<script>
// Tell Decap where the config lives (served from the same /web/admin/ tree).
window.CMS_ENDPOINT = '/web/admin';
window.CMS_CONFIG = '/web/admin/config.yml';
</script>
<!-- Decap injects the login screen / editor here -->
<!-- Decap mounts into the DOM; script must load after <body> exists.
It auto-loads config.yml from the same directory as this page. -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>