{% extends 'base.html' %}
{% load custom_filters %}
{% block title %} My Blog  {% endblock %}

{% block body_block %}

  {% for blog in user.post_author.all %}
<h3>{{ blog.blog_title }}</h3>
<h6>{{ blog.publish_date }}</h6>

<div class="row">
  <div class="col-sm-4">
    <img src="/media/{{blog.blog_image}}" width="100%">
  </div>

  <div class="col-sm-8">
    <p>{{ blog.blog_content|range_filter|linebreaks }}
       <a href="{% url 'App_Blog:blog_details' slug=blog.slug %}">Read More</a>
    </p>
    <h6>{{ blog.liked_blog.count }} Likes | {{ blog.blog_comment.count }} Comments</h6>

  </div>
</div>
<hr>
<a href="{% url 'App_Blog:edit_blog' pk=blog.pk %}" class="btn btn-info btn-sm">Edit</a>

  {% endfor %}



{% endblock %}
