digitalglarus: templates blog fixed image

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

BIN
app Normal file

Binary file not shown.

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" />

View file

@ -60,7 +60,7 @@ def contact(request):
def blog(request):
tags = ["digitalglarus", "glarus"]
tags = ["digitalglarus"]
posts = Post.objects.filter(tags__name__in=tags)
context = {
'post_list': posts,