<a href="{{ object.url }}" title="{{ object.name }}">
  <img src="http://placehold.it/317x317" class="sidebar__advert">
</a>


{% load thumbnail %}<a href="{{ object.url }}" title="{{ object.name }}">
  {% if object.image %}
  <img src="{% thumbnail object.image 317x317 crop%}" class="sidebar__advert">
  {% else %}
  <img src="http://placehold.it/317x317" class="sidebar__advert">
  {% endif %}
</a>

Update image details for the blog sidebar snippet.
Update image details for the blog sidebar snippet.
