diff options
Diffstat (limited to 'theme/templates/blog.html')
| -rw-r--r-- | theme/templates/blog.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/theme/templates/blog.html b/theme/templates/blog.html new file mode 100644 index 0000000..e3e8c3e --- /dev/null +++ b/theme/templates/blog.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block main %} + <h1>Blog Posts</h1> + + <ul class="posts"> + {% for post in posts %} + <li class="post-title"> + <a href="{{ url_for("posts", slug=post.slug) }}"> + {% if post.date is defined %} + {{ post.date|strftime("%b %d, %Y") }} — + {% endif %} + {{ post.title }} + </a> + </li> + {% endfor %} + </ul> +{% endblock %} |
