blog-list.html
HTML document, ASCII text
1
{% extends "_layout.html" %}
2
{% block Head %}
3
{{super()}}
4
<link rel="alternate" href="/blog/feed.rss" type="application/rss+xml" title="Steve0Greatness' Blog" />
5
<link rel="alternate" href="/blog/feed.json" type="application/feed+json" title="Steve0Greatness' Blog" />
6
<link rel="alternate" href="/blog/feed.atom" type="application/atom+xml" title="Steve0Greatness' Blog" />
7
<link rel="stylesheet" href="/src/blog.css" />
8
<meta property="og:type" content="website" />
9
<meta property="og:title" content="Blog index" />
10
<meta property="og:url" content="https://steve0greatness.github.io/blog/" />
11
{% endblock %}
12
{% block title %}Blog Index{% endblock %}
13
{% from "_macros.html" import GenerateBreadcrumbs %}
14
{% block breadcrumbs %}{{ GenerateBreadcrumbs([{ "href": "/blog","title": "Blog Index" }]) }}{% endblock %}
15
{% block content %}
16
<h1>Blog Posts</h1>
17
<div role="toolbar" class="toolbar">
18
<a href="/blog/feed.rss"><img src="/rss-feed.png" width="16" height="16" alt="RSS Feed"></a>
19
<a href="/blog/feed.json"><img src="/JSONFeed.png" width="16" height="16" alt="JSON Feed"></a>
20
<a href="/blog/feed.atom"><img src="/Atom-Feed.png" width="16" height="16" alt="Atom Feed"></a>
21
</div>
22
<table class="blog-list">
23
<tbody>
24
{% for post in PostList %}
25
<tr class="blog-list-title-and-date">
26
<td>
27
<a href="/blog/{{post['pathname']}}">{{post["title"]}}</a>
28
</td>
29
<td>
30
<time datetime="{{post["opengraph-date"]}}">{{post["date"]}} PST</time>
31
</td>
32
<td>
33
{% if post["is-draft"] %}<i>Draft</i>{% endif %}
34
</td>
35
</tr>
36
{% endfor %}
37
</tbody>
38
</table>
39
<script>
40
function main() {
41
if (location.search != "") {
42
location = "/blog/" + location.search + ".html"
43
}
44
}
45
</script>
46
{% endblock %}
47