diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-02 14:34:15 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-02 14:34:15 -0500 |
commit | 87f692178a6e30719c564076f00c206642f36ce6 (patch) | |
tree | fe554090adc12aff3ca404cbee7a1e82972796e8 /design/templates/lib | |
parent | 14487689c2f968346fc4ca27d0d80637ec8422ba (diff) |
fixed some bugs in templates and rendering
Diffstat (limited to 'design/templates/lib')
-rw-r--r-- | design/templates/lib/img_archive.html | 5 |
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%}> |