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

{{ post.title }}

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

{{ post.body|linebreaks }}

Share this post

Similar posts

{% for post in similar_posts %}

{{ post.title }}

{% empty %} There are no similar posts yet. {% endfor %} {% with comments.count as total_comments %}

{{ total_comments }} comment{{ total_comments|pluralize }}

{% endwith %} {% for comment in comments %}

Comment {{ forloop.counter }} by {{ comment.name }} {{ comment.created }}

{{ comment.body|linebreaks }}
{% empty %}

There are no comments yet.

{% endfor %} {% if new_comment %}

Your comment has been added.

{% else %}

Add a new comment

{{ comment_form.as_p }} {% csrf_token %}

{% endif %} {% endblock %}