Create index.html

This commit is contained in:
prayashkrsaha 2024-08-12 00:16:49 +05:30 committed by GitHub
parent 53963424cc
commit 6693ce4121
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -0,0 +1,22 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</head>
<body>
<script>
if (window.netlifyIdentity) {
window.netlifyIdentity.on("init", user => {
if (!user) {
window.netlifyIdentity.on("login", () => {
document.location.href = "/admin/";
});
}
});
}
</script>
</body>
</html>