feat: add flexsearch
This commit is contained in:
3
layouts/shortcodes/img-simple.html
Normal file
3
layouts/shortcodes/img-simple.html
Normal file
@ -0,0 +1,3 @@
|
||||
{{ $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 }}>
|
Reference in New Issue
Block a user