AMP: Use srcset to load different headers depending on screen size
This commit is contained in:
parent
e3fc5d1b9b
commit
68fcae64ae
@ -21,6 +21,7 @@ html(⚡)
|
|||||||
| {% if node.picture %}
|
| {% if node.picture %}
|
||||||
amp-img(
|
amp-img(
|
||||||
src="{{ node.picture.thumbnail('l', api=api) }}",
|
src="{{ node.picture.thumbnail('l', api=api) }}",
|
||||||
|
srcset="{{ node.picture.thumbnail('l', api=api) }} 1080w, {{ node.picture.thumbnail('m', api=api) }} 320w",
|
||||||
layout="responsive",
|
layout="responsive",
|
||||||
height="{{ node.picture.height }}",
|
height="{{ node.picture.height }}",
|
||||||
width="{{ node.picture.width }}")
|
width="{{ node.picture.width }}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user