Skip to content

Commit

Permalink
change_of_module
Browse files Browse the repository at this point in the history
  • Loading branch information
varuntree committed Apr 26, 2024
1 parent d771510 commit c93f8f2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion public/admin/cms.js
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);
49 changes: 25 additions & 24 deletions public/admin/index.html
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>

0 comments on commit c93f8f2

Please sign in to comment.