summaryrefslogtreecommitdiff
path: root/design/templates/lib/img_archive.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-09-27 11:33:59 -0500
committerluxagraf <sng@luxagraf.net>2018-09-27 11:33:59 -0500
commit1596c642731e5839da942c7727bbc1fa8016fdee (patch)
treec8630e2332d4e40a3335a67f1931462eb020c700 /design/templates/lib/img_archive.html
parentefabaed1ef7ec2baafabed9dfd3c08dc192d98bd (diff)
version 9 of stylesheet
Diffstat (limited to 'design/templates/lib/img_archive.html')
-rw-r--r--design/templates/lib/img_archive.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/design/templates/lib/img_archive.html b/design/templates/lib/img_archive.html
new file mode 100644
index 0000000..2d00e78
--- /dev/null
+++ b/design/templates/lib/img_archive.html
@@ -0,0 +1,2 @@
+{% 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%}>