update image include to not put full-size image if browser doesn't support picture tag

pull/2/head
Brian Picciano 6 years ago
parent 084bbdd0fe
commit 60ba04ef5f
  1. 4
      _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>

Loading…
Cancel
Save