2017-07-23 20:40:33 +02:00
|
|
|
{% case include.size %}
|
|
|
|
|
|
|
|
{% when 'phototeaser' %}
|
2017-11-19 13:42:14 +01:00
|
|
|
{% assign pictureSize = 'w_940,h_700,c_fill,q_auto:good,f_auto' %}
|
|
|
|
{% assign pictureSizeRetina = 'w_1880,h_1400,c_fill,q_auto:good,f_auto' %}
|
2017-07-23 20:40:33 +02:00
|
|
|
{% when 'photothumb' %}
|
2017-11-19 13:42:14 +01:00
|
|
|
{% assign pictureSize = 'w_190,h_190,c_thumb,q_auto:good,f_auto' %}
|
|
|
|
{% assign pictureSizeRetina = 'w_380,h_380,c_thumb,q_auto:good,f_auto' %}
|
2017-07-23 20:40:33 +02:00
|
|
|
{% when 'featured' %}
|
2017-11-19 13:42:14 +01:00
|
|
|
{% assign pictureSize = 'w_275,h_100,c_fill,q_auto:good,f_auto' %}
|
|
|
|
{% assign pictureSizeRetina = 'w_550,h_200,c_fill,q_auto:good,f_auto' %}
|
2017-07-23 20:40:33 +02:00
|
|
|
{% else %}
|
2017-11-19 13:42:14 +01:00
|
|
|
{% assign pictureSize = 'w_940,q_auto:best,f_auto' %}
|
|
|
|
{% assign pictureSizeRetina = 'w_1880,q_auto:best,f_auto' %}
|
2017-07-23 20:40:33 +02:00
|
|
|
{% endcase %}
|
|
|
|
|
|
|
|
{% if include.file %}
|
|
|
|
{% assign pictureSrc = include.file %}
|
|
|
|
{% else %}
|
|
|
|
{% if page.image %}
|
|
|
|
{% assign pictureSrc = page.image %}
|
|
|
|
{% else %}
|
|
|
|
{% assign pictureSrc = post.image %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2017-09-09 22:36:04 +02:00
|
|
|
<img src="{{ site.media_url }}/{{ pictureSize }}/media/{{ pictureSrc }}" srcset="{{ site.media_url }}/{{ pictureSize }}/media/{{ pictureSrc }} 1x, {{ site.media_url }}/{{ pictureSizeRetina }}/media/{{ pictureSrc }} 2x" alt="{{ post.title }}">
|