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:title" content="Blog index" />
9
<meta property="og:url" content="https://steve0greatness.github.io/blog/" />
10
{% endblock %}
11
{% block title %}Blog Index{% endblock %}
12
{% from "_macros.html" import GenerateBreadcrumbs %}
13
{% block breadcrumbs %}{{ GenerateBreadcrumbs([{ "href": "/blog","title": "Blog Index" }]) }}{% endblock %}
14
{% block content %}
15
<h1>Blog Posts</h1>
16
<div role="toolbar" class="toolbar">
17
<a href="/blog/feed.rss"><img src="/rss-feed.png" width="16" height="16" alt="RSS Feed"></a>
18
<a href="/blog/feed.json"><img src="/JSONFeed.png" width="16" height="16" alt="JSON Feed"></a>
19
<a href="/blog/feed.atom"><img src="/Atom-Feed.png" width="16" height="16" alt="Atom Feed"></a>
20
</div>
21
<table class="blog-list">
22
<tbody>
23
{% for post in PostList %}
24
<tr class="blog-list-title-and-date">
25
<td>
26
<a href="/blog/{{post['pathname']}}">{{post["title"]}}</a>
27
</td>
28
<td>
29
<time>{{post["date"]}} PST</time>
30
</td>
31
<td>
32
{% if post["is-draft"] %}<i>Draft</i>{% endif %}
33
</td>
34
</tr>
35
{% endfor %}
36
</tbody>
37
</table>
38
<script>
39
function main() {
40
if (location.search != "") {
41
location = "/blog/" + location.search + ".html"
42
}
43
}
44
</script>
45
{% endblock %}