diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-02 12:41:14 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-02 12:41:14 -0500 |
commit | 8b2b5dec69a1d5d3c9e19c5eda48d1d6f706f9b4 (patch) | |
tree | 8ef75a6df028cdf04b2ad603cfd92a587049b15b /design/templates/lib | |
parent | d4e55690d3293f375cb207693e9b02b39b4a940e (diff) |
ready to get rid of photos model for media model
Diffstat (limited to 'design/templates/lib')
-rw-r--r-- | design/templates/lib/img_archive.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/design/templates/lib/img_archive.html b/design/templates/lib/img_archive.html index a512930..2ca1e93 100644 --- a/design/templates/lib/img_archive.html +++ b/design/templates/lib/img_archive.html @@ -1,5 +1,6 @@ +{% load get_image_by_size %} <img sizes="(max-width: 728px) 100vw, (min-width: 729px) 520px" - srcset="{{image.get_featured_jrnl}} 520w, {{image.get_picwide_sm}} 720w" + srcset="{%get_image_by_size image 'featured_jrnl'%} 520w, {%get_image_by_size image 'picwide_sm'%} 720w" src="{{image.get_featured_jrnl}}" 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%}> |