{% extends 'base.html' %} {% load macros %} {% loadmacros richtext_blog/blog-macros.html %} {# Javascript (jquery) to allow the page to be auto-scrolled to the form or comments section if there are user messages there #} {% block page_javascript %} {% endblock %} {% block page_css %} {% endblock %} {% block title %} {{ SITE.name }} — {{ post.title }} {% endblock %} {# clear default messages section since on this template we want them appearing at the bottom of the page near the comments #} {% block messages_section %} {% endblock %} {% block content %}
{% usemacro blog_back_to_all %} {% usemacro blog_back_to_all %}

{% if messages %} {% endif %}

{{ comments|length }} Comments

{% if comments %} {% endif %} {% if post.comments_closed %}

Comments are closed

{% else %}

Leave a comment

{% if form.errors %}
  • {% if form.non_field_errors %} Please correct the following: {{ form.non_field_errors }} {% else %} There was a problem with your submission. Please correct the errors below. {% endif %}
{% endif %}
    {% for field in form %}
  • : {{ field.errors }}

    {{ field.help_text }}

    {{ field }}
  • {% endfor %}
{% csrf_token %}
{% endif %}
{% endblock %}