Browse Source

add webp conversion to about section

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
jamesk-patch-1
Toshaan Bharvani 11 months ago
parent
commit
37623fa21c
  1. 2
      themes/openpowerfoundation/layouts/about/single.html

2
themes/openpowerfoundation/layouts/about/single.html

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
<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 }}">
</figure>
{{ end }}

Loading…
Cancel
Save