summaryrefslogtreecommitdiff
path: root/design/templates/lib
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-02-01 09:27:21 -0600
committerluxagraf <sng@luxagraf.net>2019-02-01 09:27:21 -0600
commit3a54cdb85027e4a59ca6d78f5b91dbf7be77afd0 (patch)
tree5fedfaa18d46d4da45ef9504b511eaa74bda4eae /design/templates/lib
parent34f95ec85a7956515f810c9fda7d9650edc7da30 (diff)
redid jrnl to speed things up and use less memory
Diffstat (limited to 'design/templates/lib')
-rw-r--r--design/templates/lib/img_archive.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/design/templates/lib/img_archive.html b/design/templates/lib/img_archive.html
index 2d00e78..22b0cce 100644
--- a/design/templates/lib/img_archive.html
+++ b/design/templates/lib/img_archive.html
@@ -1,2 +1,6 @@
{% load get_image_by_size %}
-<img sizes="(max-width: 728px) 100vw, (min-width: 729px) 520px" srcset="{% for size in image.sizes.all%}{% get_image_by_size image size.name %} {{size.width}}w{% if forloop.last%}"{%else%}, {%endif%}{%endfor%}{% for size in image.sizes.all%}{%if not forloop.first and not forloop.last%} src="{% get_image_by_size image size.name%}"{%endif%}{%endfor%} alt="{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}" data-jslghtbx="{%get_image_by_size image "original"%}" data-jslghtbx-group="group" {% if caption%}data-jslghtbx-caption="{{image.caption}}"{%endif%}>
+<img sizes="(max-width: 728px) 100vw, (min-width: 729px) 520px"
+ srcset="{{image.get_featured_jrnl}} 520w, {{image.get_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%}"
+ data-jslghtbx="{{image.get_image_by_size}}" data-jslghtbx-group="group" {% if caption%}data-jslghtbx-caption="{{image.caption}}"{%endif%}>