better fitting for platinum members and webp

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1691121312378018446/archetype-theme-transition
Toshaan Bharvani 3 years ago
parent 7423f4f5d1
commit 6f7bfaaa09

@ -85,8 +85,8 @@
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Resize "185x102" }}
<div class="col-md-2 pb-3 pb-lg-0">
{{ $image := $imageresource.Fit "185x102 Center webp" }}
<div class="col-md-2 pb-3 pb-lg-0 text-valign-center">
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="180" height="102" alt="{{ .Title }}">
</div>
{{ end }}

Loading…
Cancel
Save