AMP: Use srcset to load different headers depending on screen size

This commit is contained in:
Pablo Vazquez 2017-01-23 15:56:41 +01:00
parent e3fc5d1b9b
commit 68fcae64ae

View File

@ -21,6 +21,7 @@ html(⚡)
| {% if node.picture %}
amp-img(
src="{{ node.picture.thumbnail('l', api=api) }}",
srcset="{{ node.picture.thumbnail('l', api=api) }} 1080w, {{ node.picture.thumbnail('m', api=api) }} 320w",
layout="responsive",
height="{{ node.picture.height }}",
width="{{ node.picture.width }}")