From 1d07904459900f02f6fcb36eb272b2a5b41049f9 Mon Sep 17 00:00:00 2001 From: rra Date: Sat, 5 Feb 2022 12:33:29 +0100 Subject: [PATCH] lazy load doesn't do anything on base64 encoded images since they are loaded as part of the HTML. Only works for additional requests. --- distribusi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribusi.go b/distribusi.go index 0a35c74..d908c56 100644 --- a/distribusi.go +++ b/distribusi.go @@ -576,10 +576,10 @@ func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) { thumb, err := genThumb(c, fpath, caption) if err != nil { logrus.Debugf("failed to generate thumbnail for %s, showing original image", fpath) - href = fmt.Sprintf("", stype, fname) + href = fmt.Sprintf("", stype, fname) } else { href = fmt.Sprintf( - "
%s
", + "
%s
", fname, thumb, caption, ) }