-
Notifications
You must be signed in to change notification settings - Fork 186
/
index.html
33 lines (33 loc) · 1.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- 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>
<script>
CMS.registerPreviewStyle(
"https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400&display=swap"
);
CMS.registerPreviewStyle("/styles/content.module.css");
var PostPreview = createClass({
render: function () {
var entry = this.props.entry;
var date = entry.getIn(["data", "date"]);
return h(
"div",
{ className: "content" },
h("h1", {}, entry.getIn(["data", "title"])),
h("time", {}, entry.getIn(["data", "date"])),
h("div", {}, this.props.widgetFor("body"))
);
},
});
CMS.registerPreviewTemplate("posts", PostPreview);
</script>
</body>
</html>