3 lines
374 B
HTML
3 lines
374 B
HTML
{{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) -}}
|
|
{{ $lqip := $image.Resize $.Site.Params.lqipWidth -}}
|
|
<img class="img-simple img-fluid lazyload blur-up{{ with .Get "class" }} {{.}}{{ end }}" src="{{ $lqip.Permalink }}" data-src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" {{ with .Get "alt" }}alt="{{.}}"{{ end }}> |