blob: a0aee247bd9629c28a4764440f2bdb57eda9ac1d (
plain)
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
|
{% extends "base.html" %}
{% block head %}
{{ super() }}
<link rel="stylesheet" href="/static/stylesheets/blog.css">
{% endblock %}
{% block content %}
<h1>blog</h1>
<div id="posts">
{% for post in posts|sort(attribute="created_at", reverse=True) %}
<a class="container post" href="/blog/{{ post.id }}">
<h2>{{ post.title }}</h2>
<p>{{ post.description or "" }}</p>
<p class="created-at">posted {{ format_ts(post.created_at) }}</p>
</a>
{% endfor %}
{% if posts|length == 0 %}
<p>huh, I guess nothing has been posted yet.</p>
{% endif %}
</div>
{% endblock %}
|