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

This commit is contained in:
Brian Picciano 2018-09-29 17:19:37 -04:00
parent 084bbdd0fe
commit 60ba04ef5f

View File

@ -31,7 +31,11 @@
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
<img style="max-height: 60vh;" <img style="max-height: 60vh;"
{% if include.width < 1000 %}
src="/img/{{ include.dir }}/{{ include.file }}" src="/img/{{ include.dir }}/{{ include.file }}"
{% else %}
src="/img/{{ include.dir }}/1000px/{{ include.file }}"
{% endif %}
alt="{{ include.descr }}" /> alt="{{ include.descr }}" />
</picture> </picture>
</a> </a>