<button class="post-info-btn" type="submit" id="like">
{% for like in p.likes.all %}
{% if like == request.user %}
<img src="{% static 'site/images/is_like.png' %}" alt="">
{% else %}
<img src="{% static 'site/images/like.png' %}" alt="">
{% endif %}
{% endfor %}
</button>