Newer
Older
pre-www / src / layout / partials / picture.twig
<picture>
    <source srcset="{{paths_base}}{{config.paths.img}}{{image.path}}/{{image.filename}}.webp" type="image/webp">
    <source srcset="{{paths_base}}{{config.paths.img}}{{image.path}}/{{image.filename}}.jpg" type="image/jpg">
    <img 
        src="{{paths_base}}{{config.paths.img}}{{image.path}}/{{image.filename}}.jpg"
        alt="{{image.alt}}" 
    >
</picture>