diff options
author | mms <michal@sapka.me> | 2024-06-28 14:57:08 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-06-28 14:57:08 +0200 |
commit | d6ac0fc244cc0666bae99833c7e5e835308b9eb9 (patch) | |
tree | 7b8db2a69ca69614d86eedeb54a2b4faaad96667 /layouts/shortcodes/img-r.html | |
parent | 9566717e717438cee59e6f251a8234b5164f56b5 (diff) |
chore: lazy load content images
Diffstat (limited to 'layouts/shortcodes/img-r.html')
-rw-r--r-- | layouts/shortcodes/img-r.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/shortcodes/img-r.html b/layouts/shortcodes/img-r.html index 1791ed7..e67b32f 100644 --- a/layouts/shortcodes/img-r.html +++ b/layouts/shortcodes/img-r.html @@ -4,7 +4,8 @@ {{- $img1x := $img.Resize "150x webp" }} {{- $img2x := $img.Resize "300x webp" }} {{- $caption := .Inner}} - <img +<img + loading="lazy" ; class="float-right" alt="{{ $caption }}" src="{{ $img1x.Permalink }}" |