{% extends "layout.html" %} {% block title %}Index{% endblock title %} {% block body %} {% for post in posts %}

{{ post.title }}

{{ post.published.strftime("%A, %B %d %Y at %I:%M:%S %p") }}

{% if post.caption -%}

{{ post.caption }}

{% endif %} {% else %}

No posts yet.

{% endfor %} {% endblock body %}