{% extends 'base.html' %} {% block content %} {% if user.is_authenticated %} {% if user.id == post.author.id %}