abdullahtarawneh.com/layouts/shortcodes/picture.html
2021-12-30 02:50:22 -06:00

5 lines
No EOL
211 B
HTML

<picture>
<source srcset='{{ .Get "name" }}.avif' type="image/avif">
<source srcset='{{ .Get "name" }}.webp' type="image/webp">
<img src='{{ .Get "name" }}.{{ .Get "type"}}' alt='{{ .Get "alt" }}'>
</picture>