{% extends 'base.html' %} {% block header %}

{% block title%}{{ post.title }}{% endblock %}

by {{ post.author.username }} on {{post.timestamp.strftime('%d-%m-%Y %H:%M')}}
{% if current_user == post.author %} Edit {% endif %} {% endblock %} {% block content %}

{{ post.body }}


{% block add_comment %} Comment {% endblock %}

{% for comment in comments %} {% include "blog/_comment.html" %} {% if current_user == comment.author %} Edit {% endif %} {% if not loop.last %}
{% endif %} {% endfor %} {% endblock %}