mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-16 08:14:30 +00:00
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:
1 parent
cd023168da
commit
47c58faf81
1 file changed
+1
-1
@@ -47,7 +47,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Don't lazy load image as cannot init image size from non-Hugo asset, resulting in inaccurate anchor scrolling & active link highlighting. */}}
|
{{/* 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"}}">
|
<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>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|||||||
Reference in new issue
Block a user