Skip to content
This repository was archived by the owner on Apr 1, 2022. It is now read-only.

Commit 92a9356

Browse files
arcticnoahForestry.io
authored andcommitted
Update from Forestry.io - Updated Forestry configuration
1 parent 1c85742 commit 92a9356

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.forestry/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
new_page_extension: md
33
auto_deploy: false
4-
admin_path:
4+
admin_path: "/static/admin"
55
webhook_url:
66
sections:
77
- type: heading

static/admin/index.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!-- forestryio: ignore; forestryio: admin -->
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="robots" content="noindex" />
8+
<title>Admin</title>
9+
<meta name="description" content=" " />
10+
<meta name="author" content=" " />
11+
<meta name="HandheldFriendly" content="true" />
12+
<meta name="MobileOptimized" content="320" />
13+
<!-- Use maximum-scale and user-scalable at your own risk. It disables pinch/zoom. Think about usability/accessibility before including.-->
14+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
15+
16+
<!-- Google font -->
17+
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
18+
19+
<!-- Fort awesome icon kit -->
20+
<script src="https://use.fortawesome.com/b6f38602.js"></script>
21+
22+
</head>
23+
<body>
24+
<div id="app">
25+
26+
</div>
27+
<script id="admin-config-script" type="text/javascript">
28+
var env = {
29+
siteId: "lquanc66t-jluq",
30+
local: false
31+
};
32+
33+
function uuidv4() {
34+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
35+
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
36+
return v.toString(16);
37+
});
38+
}
39+
40+
var uuid = uuidv4()
41+
var script = document.createElement('script');
42+
script.src = "https://app.forestry.io/admin/forestry.min.js?hash=" + uuid
43+
script.id = "forestry-admin";
44+
document.body.appendChild(script);
45+
46+
var link = document.createElement("link");
47+
link.type = "text/css";
48+
link.rel = "stylesheet";
49+
link.href = "https://app.forestry.io/admin/main.css?hash=" + uuid
50+
document.head.appendChild(link);
51+
52+
</script>
53+
54+
</body>
55+
</html>

0 commit comments

Comments
 (0)