1
0
Fork 0
forked from mCaptcha/website
mCaptcha-website/layouts/shortcodes/img-simple.html
2021-03-09 18:56:02 +05:30

3 lines
No EOL
336 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" src="{{ $lqip.Permalink }}" data-src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" {{ with .Get "alt" }}alt="{{.}}"{{ end }}>