update
This commit is contained in:
8
layouts/shortcodes/optimize-image.html
Normal file
8
layouts/shortcodes/optimize-image.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{$image := .Params.image}} {{$imgSrc := resources.Get $image}}
|
||||
<img
|
||||
src="{{$imgSrc.Permalink}}"
|
||||
alt="{{ .Title }}"
|
||||
data-pagefind-index-attrs="title,alt"
|
||||
class="story__coverImg"
|
||||
loading="lazy"
|
||||
/>
|
||||
Reference in New Issue
Block a user