From 02dd856a483cf6a9d534e8760d24d7920166160c Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sat, 28 Oct 2023 14:49:48 +0200 Subject: Image lazy loading --- layouts/partials/image-gallery.html | 7 ++++++- layouts/partials/post.html | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/image-gallery.html b/layouts/partials/image-gallery.html index 5e5b874..d3a5fae 100644 --- a/layouts/partials/image-gallery.html +++ b/layouts/partials/image-gallery.html @@ -14,9 +14,14 @@ class="gallery__img" src="{{ (.Fill "1152x768").Permalink }}" alt="" + loading="lazy" /> {{ end }} diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 1c655c1..ef9f03e 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -18,6 +18,7 @@ {{ $image.RelPermalink }} {{ end }}" class="mw-20-ns db center" + loading="lazy" /> {{ end }} -- cgit v1.2.3