summaryrefslogtreecommitdiff
path: root/design/templates/lib/img_archive.html
blob: 4ff8e8a9201a55f0af6c3c601729b1e486fbfa2c (plain)
1
2
3
4
5
6
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="{{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%}>