Fix ressource.Fit
not resizing the image properly
Co-authored-by: vlebert <vlebert@tactis.fr>
This commit is contained in:
parent
b5fe77f876
commit
3421c99ebf
4 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
{{/* svg don't support "Fit" operation */}}
|
||||
{{ if ne $logoImage.MediaType.SubType "svg" }}
|
||||
{{ $logoImage := $logoImage.Fit "24x24" }}
|
||||
{{ $logoImage = $logoImage.Fit "24x24" }}
|
||||
{{ end }}
|
||||
|
||||
<img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue