Skip to content

Commit e49b750

Browse files
committed
Stastic admin install
1 parent 8d1f7b5 commit e49b750

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

admin/data.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
notPage:
3+
- /admin/data.json
4+
layout:
5+
---
6+
{
7+
"collections": {
8+
{% for item in site.collections %}
9+
"{{item.label}}": {{ site[item.label] | jsonify}}
10+
{% if forloop.last %}{% else %},{% endif %}
11+
{% endfor %}
12+
},
13+
"pages": [
14+
{% for item in site.pages %}
15+
{% unless page.notPage contains item.url %}
16+
{
17+
"id": "{{ item.url }}",
18+
{% for prop in item %}
19+
"{{ prop[0] }}": {{ prop[1] | jsonify }}
20+
{% if forloop.last %}{% else %},{% endif %}
21+
{% endfor %}
22+
}
23+
{% if forloop.last %}{% else %},{% endif %}
24+
{% endunless %}
25+
{% endfor %}
26+
],
27+
"data": {{ site.data | jsonify }}
28+
}

admin/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<!-- Google Tag Manager -->
5+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
6+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
7+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
8+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
9+
})(window,document,'script','dataLayer','GTM-WJRTJ9M');</script>
10+
<!-- End Google Tag Manager -->
11+
<meta charset="utf-8" />
12+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
13+
<title>Stastic Jekyll Editor</title>
14+
<meta name="viewport" content="width=device-width, initial-scale=1">
15+
<link rel="stylesheet" href="https://editor.stastic.net/admin.css">
16+
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="9c68de1f-7c54-4558-835f-c8ecdab486f1";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
17+
</head>
18+
<body>
19+
<span class="stastic-loader stastic-centered-message">Redirecting to Stastic admin...</span>
20+
<script>
21+
window.location.href = 'https://editor.stastic.net/admin.html?path=arduino_console/gh-pages&referrer=' + window.location.href
22+
</script>
23+
</body>
24+
</html>

0 commit comments

Comments
 (0)