diff options
Diffstat (limited to 'layouts/shortcodes/img-lazy.html')
-rw-r--r-- | layouts/shortcodes/img-lazy.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/img-lazy.html b/layouts/shortcodes/img-lazy.html index a8927a5..bac255b 100644 --- a/layouts/shortcodes/img-lazy.html +++ b/layouts/shortcodes/img-lazy.html @@ -2,21 +2,21 @@ <img class="lazyload img-zoomable" src="{{ .Site.Params.lazyPlaceholder | relURL }}" - data-src="{{ index .Params 1 }}" + data-src="{{ index .Params 1 | relURL | safeURL }}" alt="{{ index .Params 0 }}" /> {{ else if len .Params | eq 3 }}{{ if eq (index .Params 0) "row" }} <img class="lazyload img-zoomable" src="{{ .Site.Params.lazyPlaceholderRow | relURL }}" - data-src="{{ index .Params 2 }}" + data-src="{{ index .Params 2 | relURL | safeURL }}" alt="{{ index .Params 1 }}" /> {{ else if eq (index .Params 0) "col" }} <img class="lazyload img-zoomable" src="{{ .Site.Params.lazyPlaceholderCol | relURL }}" - data-src="{{ index .Params 2 }}" + data-src="{{ index .Params 2 | relURL | safeURL }}" alt="{{ index .Params 1 }}" /> {{ else }}{{ end }}{{ else }}{{ end }} |