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
|
@ -21,7 +21,7 @@
|
|||
{{/* apply image processing. don't use "Fit" in svg because its not supported */}}
|
||||
{{ $authorImage:= resources.Get $authorImage}}
|
||||
{{ if and $authorImage (ne $authorImage.MediaType.SubType "svg") }}
|
||||
{{ $authorImage := $authorImage.Fit "120x120" }}
|
||||
{{ $authorImage = $authorImage.Fit "120x120" }}
|
||||
{{ end }}
|
||||
|
||||
{{/* return the author image link */}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue