{% extends "blog/base.html" %} {% block title %} My Blog {% endblock %} {% block content %}

My Blog

{% for post in posts %}

{{ post.title }}

Published {{ post.publish }} by {{ post.author }}

{{ post.body|truncatewords:30|linebreaks }} {% endfor %} {% include "pagination.html" with page=page_obj %} {% endblock %}