summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/img-r.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-06-28 14:57:08 +0200
committermms <michal@sapka.me>2024-06-28 14:57:08 +0200
commitd6ac0fc244cc0666bae99833c7e5e835308b9eb9 (patch)
tree7b8db2a69ca69614d86eedeb54a2b4faaad96667 /layouts/shortcodes/img-r.html
parent9566717e717438cee59e6f251a8234b5164f56b5 (diff)
chore: lazy load content images
Diffstat (limited to 'layouts/shortcodes/img-r.html')
-rw-r--r--layouts/shortcodes/img-r.html3
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 }}"