-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
varuntree
committed
Apr 26, 2024
1 parent
d771510
commit c93f8f2
Showing
2 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import CMS from 'netlify-cms-app'; | ||
import CMS from "decap-cms-app"; | ||
import MoleculePreview from './MoleculePreview'; | ||
|
||
CMS.registerPreviewTemplate('molecules', MoleculePreview); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="robots" content="noindex" /> | ||
<title>Content Manager</title> | ||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> | ||
</head> | ||
<body> | ||
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script> | ||
<script src="/admin/cms.js"></script> | ||
<script> | ||
NetlifyCMS.init(); | ||
</script> | ||
<script> | ||
if (window.netlifyIdentity) { | ||
window.netlifyIdentity.on("init", (user) => { | ||
if (!user) { | ||
window.netlifyIdentity.on("login", () => { | ||
document.location.href = "/admin/"; | ||
}); | ||
} | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="robots" content="noindex" /> | ||
<title>Content Manager</title> | ||
<link rel="stylesheet" href="https://identity.netlify.com/v1/netlify-identity-widget.js"> | ||
</head> | ||
<body> | ||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/netlify-cms-app.js"></script> | ||
<script src="/admin/cms.js"></script> | ||
<script> | ||
NetlifyCMS.init(); | ||
</script> | ||
<script> | ||
if (window.netlifyIdentity) { | ||
window.netlifyIdentity.on("init", (user) => { | ||
if (!user) { | ||
window.netlifyIdentity.on("login", () => { | ||
document.location.href = "/admin/"; | ||
}); | ||
} | ||
</script> | ||
</body> | ||
</html> | ||
}); | ||
} | ||
</script> | ||
</body> | ||
</html> |