update image include to not put full-size image if browser doesn't support picture tag
This commit is contained in:
parent
084bbdd0fe
commit
60ba04ef5f
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user