1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 %}