add webp so the image is converted

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

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

Loading…
Cancel
Save