summaryrefslogtreecommitdiff
path: root/design/templates/details/photo_gallery.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/details/photo_gallery.html')
-rw-r--r--design/templates/details/photo_gallery.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/design/templates/details/photo_gallery.html b/design/templates/details/photo_gallery.html
index 73b1d25..db8ec87 100644
--- a/design/templates/details/photo_gallery.html
+++ b/design/templates/details/photo_gallery.html
@@ -1,6 +1,6 @@
{% extends 'base.html' %}
{% load typogrify_tags %}
-{% load get_image_size %}
+{% load get_image_by_size %}
{% load number_to_word %}
{% block pagetitle %}{{object.title}} - Luxagraf, Photos{% endblock %}
@@ -28,11 +28,11 @@
<article id="image-{{forloop.counter}}">
<h6><a href="#image-{{forloop.counter}}" class="permalink" title="link to this image">&#8734; {{forloop.counter|number_to_word}} &#8734;</a></h6>
<figure class="fig">
- <a href="{% get_image_size photo "original" %}"><img sizes="(max-width: 960px) 100vw"
- srcset="{% get_image_size photo "small" %} 720w,
- {% get_image_size photo "medium" %} 1140w,
- {% get_image_size photo "large" %} 2280w,"
- src="{% get_image_size photo "medium" %}" alt="{{photo.title}}" {%if photo.is_portait %}class="v"{%endif%} ></a>
+ <a href="{% get_image_by_size photo "original" %}"><img sizes="(max-width: 960px) 100vw"
+ srcset="{% get_image_by_size photo 720 %} 720w,
+ {% get_image_by_size photo 1140 %} 1140w,
+ {% get_image_by_size photo 2280 %} 2280w,"
+ src="{% get_image_by_size photo 1140 %}" alt="{{photo.title}}" {%if photo.is_portait %}class="v"{%endif%} ></a>
<figcaption class="figcaption">
<div class="caption" id="id-{{photo.id}}">
<h3 class="figcaption--title">{{photo.title}}</h3>
@@ -50,7 +50,6 @@
</figure>
</article>
{% endfor %}
- </section>
{%endblock%}
{% block js %}