{% extends 'base.html' %} {% block content %} {% if category_posts %} Categories

{{ cats }}

{% for post in category_posts %}
  • {{ post.title }} - {{ post.author.first_name }} {{ post.author.last_name }} - {{ post.post_date }} {{ post.post_time }} {% if user.is_authenticated %} Edit post Delete post
    {% endif %} {{ post.body|slice:"200" }}
  • {% endfor %} {{ cats }}