add webp conversion to about section

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 24c3bf512e
commit 37623fa21c

@ -14,7 +14,7 @@
{{ $imageresource := resources.Get $imagelocation }} {{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }} {{ if $imageresource }}
<figure class="figure d-flex pt-0 pt-lg-3"> <figure class="figure d-flex pt-0 pt-lg-3">
{{ $image := $imageresource.Fit "600x600" }} {{ $image := $imageresource.Fit "600x600 webp" }}
<img class="img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}"> <img class="img-fluid" src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
</figure> </figure>
{{ end }} {{ end }}

Loading…
Cancel
Save