{% extends "base.html" %} {% block title %}{{ post.title }}{% endblock %} {% block body %}

{{ post.title }}

Written By {{ post.user.username }} on {{ post.publish_date }}

Tags: {% for tag in tags %} {{tag.title}} {% endfor %}

{% if current_user == post.user %} {% endif %}
{{ post.text | safe }}

Comments ({{ comments | length }})

New Comment:

{{ form.hidden_tag() }}
{{ form.name.label }} {% if form.name.errors %} {% for e in form.name.errors %}

{{ e }}

{% endfor %} {% endif %} {{ form.name(class_='form-control') }}
{{ form.text.label }} {% if form.text.errors %} {% for e in form.text.errors %}

{{ e }}

{% endfor %} {% endif %} {{ form.text(class_='form-control') }}
{% if comments | length == 0 %}

There are no comments for this post.

{% else %} {% for comment in comments %}

By: {{ comment.name }} on {{ comment.date }}

{{ comment.text }}

{% endfor %} {% endif %}
Recent Posts
Popular Tags
{% endblock %}