diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-10-28 14:49:48 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-10-28 14:49:48 +0200 |
commit | 02dd856a483cf6a9d534e8760d24d7920166160c (patch) | |
tree | bab9cdeedd6e2244d6b57c097e99e9b70b5a71f1 /layouts/partials/image-gallery.html | |
parent | a0d1038fb02d7afc8262731a4f89dedfb2c2e032 (diff) | |
download | hugo-minimalist-theme-02dd856a483cf6a9d534e8760d24d7920166160c.tar.gz hugo-minimalist-theme-02dd856a483cf6a9d534e8760d24d7920166160c.tar.bz2 hugo-minimalist-theme-02dd856a483cf6a9d534e8760d24d7920166160c.zip |
Image lazy loading
Diffstat (limited to 'layouts/partials/image-gallery.html')
-rw-r--r-- | layouts/partials/image-gallery.html | 7 |
1 files changed, 6 insertions, 1 deletions
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" /> <label for="img-{{ $id }}" class="gallery__thumb"> - <img src="{{ (.Fill "150x100").Permalink }}" alt="" /> + <img + src="{{ (.Fill "150x100").Permalink }}" + alt="" + loading="lazy" + /> </label> </div> {{ end }} |