{% extends 'base.html' %} {% load static %} {% block title %}{{post.title_tag}}{% endblock %} {% block content %}

{{post.title}} -- 

BY: {{post.author.first_name}} {{post.author.last_name}}-- {{ post.post_date}}

{% if user.is_authenticated %} {% if user.id == post.author.id %} -EDIT

-DELETE

{% endif %} {% endif %}
{% if post.header_image %} {% endif %}

{{post.body|safe}}

BACK

{% csrf_token%} {% if user.is_authenticated %} {% if liked %} {% else %} {% endif%} {% else %} PLEASE LOG IN TO LIKE THIS POST LOGIN {% endif %} -- {{total_likes}}  LIKES


COMMENTS




{% if not post.comments.all%} {%comment%}No COMMENTS- ADD ONE {%endcomment%} {% else %}

ADD COMMENT

{% for comment in post.comments.all%} {{comment.name}} -
{{coments.date_added}} -

{{comment.body}} {%endfor%} {%endif%}

{% if post.author.profile.profile_pic%} {% else %} {% comment %}-{% endcomment %} {% endif %}

{{post.author.first_name}} {{ post.author.last_name}}

MY WEBSITE - MY FACEBOOK - MY INSTRAGRAM




{% if post.author.profile.profile%} MY PROFILE Correct? {% endif%}

{% if post.author.profile.website%} MY WEBSITE - {% endif%} {% if post.author.profile.facebook%} MY FACEBOOK - {% endif%} {% if post.author.profile.instragram%} MY INSTRAGRAM {% endif%}

{{post.author.profile.bio}}

{% endblock%}