admin: fix Decap render (script in body, yaml MIME), Gitea OAuth backend + CORS, simple workflow
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user