-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (39 loc) · 1.18 KB
/
index.html
File metadata and controls
39 lines (39 loc) · 1.18 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
---
title: Home
layout: base
---
<a id="new-post" class="admin-link icon-edit" href="https://github.com/wh0/wh0.github.io/new/master/_posts" title="New post"></a>
<script>
document.getElementById('new-post').addEventListener('mousedown', function (e) {
var d = new Date();
e.target.href = 'https://github.com/wh0/wh0.github.io/new/master' +
'?filename=' + encodeURIComponent(
'_posts/' +
d.getFullYear() + '-' +
('0' + (d.getMonth() + 1)).slice(-2) + '-' +
('0' + d.getDate()).slice(-2) +
'-new-post.md'
) +
'&value=' + encodeURIComponent(
'---\n' +
'date: ' + d.toString().replace('GMT', '') + '\n' +
'qualitative_time: \n' +
'title: New post\n' +
'previous_teaser: \n' +
'previous_first: ' + JSON.stringify(Math.random() < 0.5) + '\n' +
'---\n'
) +
'&message=new%20post';
});
</script>
<div class="navigation">
<h1>Articles <a class="feed-link icon-rss" rel="alternate" type="application/atom+xml" href="/articles.xml"></a></h1>
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title | smartify }}</a>
<p class="meta">{% include meta.txt post=post %}</p>
</li>
{% endfor %}
</ul>
</div>