add webp so the image is converted

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1693382392408915667/master
Toshaan Bharvani 2 years ago
parent 91755a8b70
commit 24b11d7b5a

@ -14,7 +14,7 @@
{{ $imagelocation := printf "%s/%s" "images" $imagefilename }} {{ $imagelocation := printf "%s/%s" "images" $imagefilename }}
{{ $imageresource := resources.Get $imagelocation }} {{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }} {{ if $imageresource }}
{{ $imagefile := $imageresource.Fit "600x600" }} {{ $imagefile := $imageresource.Fit "600x600 webp" }}
<figure class="figure d-flex pt-3"> <figure class="figure d-flex pt-3">
<img src="{{ $imagefile.RelPermalink }}"> <img src="{{ $imagefile.RelPermalink }}">
</figure> </figure>

Loading…
Cancel
Save