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
This commit is contained in:
George Cushen committed 2020-07-06 22:00:59 +01:00
1 parent cd023168da
commit 47c58faf81
1 file changed
+1 -1
+1 -1
View File
@@ -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. */}}
<a data-fancybox="gallery{{ with .album }}-{{.}}{{ end }}" {{ with .caption }}data-caption="{{.|markdownify|emojify|safeHTMLAttr}}"{{ end }} href="{{$.Scratch.Get "src"}}">
<img data-src="{{$.Scratch.Get "src"}}" alt="">
<img src="{{$.Scratch.Get "src"}}" alt="">
</a>
{{end}}
{{else}}