{% extends 'blog/base.html' %} {% block title %} Home Page {% endblock %} {% block body %} {% if posts %} {% for post in posts %}
{{ post.title }}

{{ post.content }}

{% endfor %} {% else %}

Posts are not available

{% endif %} {% endblock %}