summaryrefslogtreecommitdiff
path: root/templates/lib/img_archive.html
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-10-30 17:22:29 -0400
committerlxf <sng@luxagraf.net>2021-10-30 17:22:29 -0400
commitbf2fa131cba6430ba93f584f4693c3444e0c455f (patch)
tree8100450ec72af6d698bb52dab1aab4cced3b7bd3 /templates/lib/img_archive.html
parent7b628e9cde7fe2babe16523b7d1d44df0c468203 (diff)
base: added a base template dir
Diffstat (limited to 'templates/lib/img_archive.html')
-rw-r--r--templates/lib/img_archive.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/lib/img_archive.html b/templates/lib/img_archive.html
new file mode 100644
index 0000000..4ff8e8a
--- /dev/null
+++ b/templates/lib/img_archive.html
@@ -0,0 +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="{{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%}>