From d6ac0fc244cc0666bae99833c7e5e835308b9eb9 Mon Sep 17 00:00:00 2001 From: mms Date: Fri, 28 Jun 2024 14:57:08 +0200 Subject: chore: lazy load content images --- layouts/partials/blog/cross-site-post.html | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'layouts/partials/blog/cross-site-post.html') diff --git a/layouts/partials/blog/cross-site-post.html b/layouts/partials/blog/cross-site-post.html index 3a13af8..2a9f77b 100644 --- a/layouts/partials/blog/cross-site-post.html +++ b/layouts/partials/blog/cross-site-post.html @@ -16,15 +16,16 @@ {{- $img2x := $img.Resize "64x webp" }}
Arrow + alt="Arrow" + loading="lazy" + src="{{ $img1x.Permalink }}" + srcset=" + {{ $img1x.Permalink }} 1x, + {{ $img2x.Permalink }} 2x + " + width="{{ $img1x.Width }}" + height="{{ $img1x.Height }}" + >
+ -- cgit v1.2.3