From 47c58faf814adbca574c1c8c895a7041efeee4e4 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 6 Jul 2020 22:00:53 +0100 Subject: [PATCH] fix(gallery): don't lazy load media library or remote images `class="lazyload"` was earlier removed but the `data-src` was not reverted to `src`. Fixes gallery images not loading from `static/img/` or from remote URL. Fix #1771 --- layouts/shortcodes/gallery.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 3d48c6ea..8eb74d70 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -47,7 +47,7 @@ {{ end }} {{/* Don't lazy load image as cannot init image size from non-Hugo asset, resulting in inaccurate anchor scrolling & active link highlighting. */}} - + {{end}} {{else}}