summaryrefslogtreecommitdiff
path: root/_includes/image.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2018-09-29 17:19:37 -0400
committerBrian Picciano <mediocregopher@gmail.com>2018-09-29 17:19:37 -0400
commit60ba04ef5f2752bfb41359162e5576c2577eaedf (patch)
treee22d5de0881c1f34ef7fc91dc6ca08e3c16d7147 /_includes/image.html
parent084bbdd0feda1f1a9d253f2a22b4a55f40f8e144 (diff)
update image include to not put full-size image if browser doesn't support picture tag
Diffstat (limited to '_includes/image.html')
-rw-r--r--_includes/image.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/_includes/image.html b/_includes/image.html
index 30af037..8875050 100644
--- a/_includes/image.html
+++ b/_includes/image.html
@@ -31,7 +31,11 @@
{%- endfor %}
{%- endif %}
<img style="max-height: 60vh;"
+ {% if include.width < 1000 %}
src="/img/{{ include.dir }}/{{ include.file }}"
+ {% else %}
+ src="/img/{{ include.dir }}/1000px/{{ include.file }}"
+ {% endif %}
alt="{{ include.descr }}" />
</picture>
</a>