|
@@ -18,12 +18,12 @@
|
|
|
{{ end }}
|
|
|
{{ end }}
|
|
|
|
|
|
-{{/* apply image processing. don't use "Fit" in svg because its not supported */}}
|
|
|
+{{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
|
|
|
{{ $authorImage:= resources.Get $authorImage}}
|
|
|
-{{ if and $authorImage (ne $authorImage.MediaType.SubType "svg") }}
|
|
|
+
|
|
|
+{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
|
|
|
{{ $authorImage = $authorImage.Fit "120x120" }}
|
|
|
{{ end }}
|
|
|
|
|
|
{{/* return the author image link */}}
|
|
|
{{ return $authorImage.RelPermalink }}
|
|
|
-
|