Open jvolker opened 6 years ago
I'd even go so far that you can pass your own function to generate the <img />
tags while this https://github.com/axe312ger/metalsmith-adaptive-images/blob/master/src/index.js#L128-L136 is the default function to handle it.
Create a PR, I am happy to merge it then :)
Being able to use this with LazyLoad would be nice.
LazyLoad requires the attribute names to be changed from
src
andsrcset
todata-src
anddata-srcset
as shown in this example.Two suggestions
lazyLoad
, which iftrue
renders withdata-src
anddata-srcset
attribute names instead of regular ones. Orprefix
, which allows adding any prefix.