fix: add class user added to img-simple shortcode
This commit is contained in:
parent
a67f1ac3bc
commit
bce8863269
|
@ -1,3 +1,3 @@
|
||||||
{{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) -}}
|
{{ $image := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) -}}
|
||||||
{{ $lqip := $image.Resize $.Site.Params.lqipWidth -}}
|
{{ $lqip := $image.Resize $.Site.Params.lqipWidth -}}
|
||||||
<img class="img-simple img-fluid lazyload blur-up" src="{{ $lqip.Permalink }}" data-src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" {{ with .Get "alt" }}alt="{{.}}"{{ end }}>
|
<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 }}>
|
Loading…
Reference in New Issue