digitalglarus: templates blog fixed image
This commit is contained in:
parent
2cc4ea226d
commit
f3c14fab11
3 changed files with 2 additions and 2 deletions
BIN
app
Normal file
BIN
app
Normal file
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
{% load i18n thumbnail %}
|
{% load i18n thumbnail %}
|
||||||
|
|
||||||
<article id="post-{{ post.slug }}" class="post-item col-lg-12 text-center">
|
<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">
|
<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 %}
|
{% 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" />
|
<img src="{{ post.main_image.url }}" alt="{{ post.main_image.default_alt_text }}" class="img-responsive img-border img-full" />
|
||||||
|
|
|
@ -60,7 +60,7 @@ def contact(request):
|
||||||
|
|
||||||
|
|
||||||
def blog(request):
|
def blog(request):
|
||||||
tags = ["digitalglarus", "glarus"]
|
tags = ["digitalglarus"]
|
||||||
posts = Post.objects.filter(tags__name__in=tags)
|
posts = Post.objects.filter(tags__name__in=tags)
|
||||||
context = {
|
context = {
|
||||||
'post_list': posts,
|
'post_list': posts,
|
||||||
|
|
Loading…
Reference in a new issue