theme/templates/blog.html
15 lines · 512 bytes
1{% extends "base.html" %} {% block subtitle %}Blog | {% endblock %} {% block
2main %}
3<h1>Blog</h1>
4<p>Use <code>Ctrl + F</code> to search blog post titles for keywords.</p>
5<p>
6 You can also add the <a href="/feed.xml">RSS Feed</a> to your feed reader.
7</p>
8{% for post in posts %}
9<div class="post">
10 <time datetime='{{ post.date | strftime("%Y-%m-%d") }}'
11 >{{ post.date|strftime("%Y-%m-%d") }}</time
12 >
13 <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a>
14</div>
15{% endfor %} {% endblock %}