summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
Diffstat (limited to 'design')
-rw-r--r--design/templates/lib/img_archive.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/design/templates/lib/img_archive.html b/design/templates/lib/img_archive.html
index 561f48c..4ff8e8a 100644
--- a/design/templates/lib/img_archive.html
+++ b/design/templates/lib/img_archive.html
@@ -1,6 +1,7 @@
{% load get_image_by_size %}
+{% get_image_by_size image 'featured_jrnl' as featured %}
<img sizes="(max-width: 728px) 100vw, (min-width: 729px) 520px"
- srcset="{%get_image_by_size image 'featured_jrnl'%} 520w, {%get_image_by_size image 'picwide-sm'%} 720w"
- src="{%get_image_by_size image 'featured_jrnl'%}"
+ srcset="{{featured}} 520w, {%get_image_by_size image 'picwide-sm'%} 720w"
+ src="{{featured}}"
alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}"
{% if not nolightbox %}data-jslghtbx="{{image.get_image_by_size}}" data-jslghtbx-group="group" {% if caption%}data-jslghtbx-caption="{{image.caption}}"{%endif%}{%endif%}>