|
@@ -26,8 +26,11 @@
|
|
{{ $authorImage = $author.image }}
|
|
{{ $authorImage = $author.image }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ $authorImage := resources.Get $authorImage }}
|
|
{{ $authorImage := resources.Get $authorImage }}
|
|
-{{ $authorImage = $authorImage.Fit "148x148" }}
|
|
|
|
|
|
|
|
|
|
+{{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
|
|
|
|
+{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
|
|
|
|
+ {{ $authorImage = $authorImage.Fit "148x148" }}
|
|
|
|
+{{ end }}
|
|
{{/* get file that matches the filename as specified as src="" in shortcode */}}
|
|
{{/* get file that matches the filename as specified as src="" in shortcode */}}
|
|
{{ $src := resources.Get $backgroundImage }}
|
|
{{ $src := resources.Get $backgroundImage }}
|
|
|
|
|