digitalglarus: templates blog fixed image

This commit is contained in:
rascencio 2015-09-26 13:42:46 -06:00
commit f3c14fab11
3 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{% load i18n thumbnail %}
<article id="post-{{ post.slug }}" class="post-item col-lg-12 text-center">
{% if image and post.main_image %}
{% if post.main_image %}
<div class="blog-visual">
{% thumbnail post.main_image post.full_image_options.size crop=post.full_image_options.crop upscale=post.full_image_options.upscale subject_location=post.main_image.subject_location as thumb %}
<img src="{{ post.main_image.url }}" alt="{{ post.main_image.default_alt_text }}" class="img-responsive img-border img-full" />