-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
280 lines (271 loc) · 8.62 KB
/
Copy pathindex.html
File metadata and controls
280 lines (271 loc) · 8.62 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<title>Bliss - Blog as easily as creating a Gist</title>
<link rel="stylesheet" href="https://unpkg.com/mvp.css" />
<meta
name="description"
content="Blogging as easy as 'bli' + enter, write, and commit. Create a blog in 30 seconds with the Bliss Template + GitHub Actions on GitHub Pages"
/>
<link rel="icon" href="./bliss-96px.png" />
<!--
<meta property="og:title" content="Unique page title - My Site">
<meta property="og:description" content="Page description">
<meta property="og:image" content="https://www.mywebsite.com/image.jpg">
<meta property="og:image:alt" content="Image description">
<meta property="og:locale" content="en_GB">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:url" content="https://www.mywebsite.com/page">
<link rel="canonical" href="https://www.mywebsite.com/page">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/my.webmanifest">
<meta name="theme-color" content="#FF00FF">
-->
<script src="https://unpkg.com/ajquery@2.1/ajquery.min.js"></script>
<script src="https://unpkg.com/xtz@1.0/xtz.min.js"></script>
<style>
nav {
margin-bottom: 0.8rem;
}
header {
padding-top: 0;
padding-bottom: 0.8rem;
}
main {
padding-top: 0;
}
fieldset {
border-style: none;
}
fieldset label {
display: inline-block;
}
</style>
</head>
<body>
<header>
<nav>
<a href="https://bliss.js.org/"
><img alt="Bliss" src="./bliss-96px.png" height="48" />
<!-- I think this is the Blood Type emjoi?? -->
<!-- span style="font-size: 4em"> 🅱 </span -->
</a>
<h1>Bliss: Blog, Easy As Gist</h1>
<ul>
<li>Post</li>
<li>
<a href="https://github.com/coolaj86/bliss/" target="_blank"
>GitHub ↗</a
>
</li>
</ul>
</nav>
<p>
Want a Blog in <strong>30 seconds</strong>? Try out our GitHub
<mark>Template + Actions</mark>:
<br />
<a
href="https://github.com/BeyondCodeBootcamp/bliss-template"
target="_blank"
>https://github.com/BeyondCodeBootcamp/bliss-template</a
>
<br />
</p>
</header>
<main>
<section>
<!-- TODO grid flex list thing?? -->
<table>
<thead>
<tr>
<th>Created</th>
<th>Title</th>
<th></th>
<th>Last Update</th>
<th></th>
</tr>
</thead>
<tbody class="js-items">
<tr class="js-row">
<td style="text-align: left"><span hidden>{{created}}</span></td>
<td style="text-align: left">
<span hidden><h3>{{title}}</h3></span>
<input
name="uuid"
type="hidden"
value="{{uuid}}"
class="js-uuid"
/>
</td>
<td>
<button onclick="Post.deserialize(event);">Load Draft</button>
</td>
<td style="text-align: left"><span hidden>{{updated}}</span></td>
<td>
<a href="" onclick="Post.delete(event);"> 🗑 </a>
</td>
</tr>
</tbody>
</table>
</section>
<br />
<section>
<form style="width: 100%">
<a onclick="Post.create(event);" style="float: right">New Post</a>
<button
onclick="Post.undelete(event)"
class="js-undelete"
style="float: right"
hidden
>
Undelete
</button>
<br />
<label
>Content:
<textarea
style="width: 90%"
name="content"
cols="28"
rows="22"
placeholder="# Magnificent Title
> Summary tagline for meta description here...
Hello, World!
1. Start your article title with '#' (as seen above) and write away!
2. Select your Content System and Git Host.
3. We'll handle the YAML (FrontMatter).
You just focus on the Bliss of writing your content!
"
onkeyup="Post.serialize(event)"
></textarea>
</label>
<label
>Summary:
<textarea
style="width: 90%"
name="description"
cols="28"
rows="3"
placeholder="This will be used for Facebook, Twitter, and Google Search previews.
Best kept 50 - 155 characters."
onkeyup="Post.patch(event)"
></textarea>
</label>
<div
style="
text-align: right;
margin-right: 3.28em;
position: relative;
top: -0.8rem;
"
>
<span
class="js-description-length"
style="transition-property: color; transition-duration: 250ms"
>0</span
>/155
</div>
<!-- label
>Title:
<input
style="width: 90%"
type="text"
name="title"
size="28"
onkeyup="Post.serialize(event);"
placeholder="Post Title"
/>
</label -->
<!-- label
>Created:
<input
type="datetime-local"
name="created"
onchange="Post.serialize(event)"
/>
</label -->
<!-- about the blog system -->
<fieldset>
<label style="width: 65%"
>Repo:
<input
type="url"
name="repo"
list="-repos"
style="width: 80%"
autocomplete="off"
onchange="Blog.serialize(event)"
placeholder="https://github.com/EXAMPLE/PROJECT"
required
/>
<datalist id="-repos">
<option value="{{id}}"></option>
</datalist>
</label>
<label style="width: 25%; float: right; margin-right: 2.8em"
>Branch:
<input
name="gitbranch"
placeholder="ex: main, master, or gh-pages"
autocomplete="on"
list="-branches"
value="main"
onchange="Blog.serialize(event)"
/>
<datalist id="-branches">
<option value="main"></option>
<option value="master"></option>
<option value="gh-pages"></option>
</datalist>
</label>
</fieldset>
<fieldset>
<label
>Blog or Static Site System:
<select name="blog" onchange="Blog.serialize(event)">
<option value="bash">BashBlog</option>
<option value="desi">Desi</option>
<option value="eon" selected>Hugo (eon theme)</option>
<option value="zola">Zola</option>
</select>
</label>
<label
>Git Host:
<select name="githost" onchange="Blog.serialize(event)">
<option value="github" selected>GitHub</option>
<option value="gitea">Gitea v1.16+</option>
<option value="gitlab" disabled>
GitLab (see gitlab#337038)
</option>
</select>
</label>
<label style="float: right; margin-right: 2.8em"
><a class="js-commit-url" target="_blank"
><i>Create on <span class="js-githost"></span></i
></a>
</label>
</fieldset>
<br />
<div style="max-width: 100%"></div>
<!-- TODO Save Version -->
</form>
</section>
<section class="js-preview-container" hidden>
<pre style="width: 100%">
<code language="text" class="js-filename" style="width: 50%">
</code>
<code language="markdown" class="js-preview">
</code>
[Debug Info] Raw URL:
<code language="text" class="js-raw-url">
</code>
</pre>
</section>
</main>
<script src="./app.js"></script>
</body>
</html>