better fitting for platinum members and webp

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 7423f4f5d1
commit 6f7bfaaa09

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

Loading…
Cancel
Save