abdullahtarawneh.com/layouts/shortcodes/picture.html

5 lines
211 B
HTML
Raw Normal View History

2021-12-30 08:50:22 +00:00
<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>