Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/your-identity/hugo-theme-dimension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord-asnaghi <asnaghi@me.com>2020-05-17 22:08:06 +0300
committerd-asnaghi <asnaghi@me.com>2020-05-17 22:08:06 +0300
commit297122d1f67f23f472e7669e7fcfdf9ab0805263 (patch)
treeea38d16a6add3a9c2d48683cf76bfb113fea27c1
parent1e1abd2e31c6727c820f683be01c4f7c650198d1 (diff)
[CMS] simpler handling
-rw-r--r--layouts/partials/header.html3
-rw-r--r--layouts/partials/netlify-cms.html2
-rw-r--r--layouts/partials/netlify-identity.html2
-rw-r--r--static/admin/index.html6
4 files changed, 6 insertions, 7 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 917838f..7a532b2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -9,5 +9,6 @@
<style>
:root{--site-background : url("{{ .Params.background | default "images/bg.jpg" | absURL }}")};
</style>
- {{ partial "netlify-cms.html" .}}
+ <!-- Include the script that builds the page and powers Netlify CMS -->
+ <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</head> \ No newline at end of file
diff --git a/layouts/partials/netlify-cms.html b/layouts/partials/netlify-cms.html
deleted file mode 100644
index 1e671e7..0000000
--- a/layouts/partials/netlify-cms.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<!-- Include the script that builds the page and powers Netlify CMS -->
-<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> \ No newline at end of file
diff --git a/layouts/partials/netlify-identity.html b/layouts/partials/netlify-identity.html
deleted file mode 100644
index ab43efc..0000000
--- a/layouts/partials/netlify-identity.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<!-- Include the script that enables Netlify Identity on this page. -->
-<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> \ No newline at end of file
diff --git a/static/admin/index.html b/static/admin/index.html
index 711f0d9..d4de267 100644
--- a/static/admin/index.html
+++ b/static/admin/index.html
@@ -4,9 +4,11 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
- {{ partial "netlify-identity.html" .}}
+ <!-- Include the script that enables Netlify Identity on this page. -->
+ <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
- {{ partial "netlify-cms.html" .}}
+ <!-- Include the script that builds the page and powers Netlify CMS -->
+ <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
</body>
</html> \ No newline at end of file