diff --git a/layouts/shortcodes/blocks/cover.html b/layouts/shortcodes/blocks/cover.html index a055c399f9..8779b3452b 100644 --- a/layouts/shortcodes/blocks/cover.html +++ b/layouts/shortcodes/blocks/cover.html @@ -9,8 +9,12 @@ {{ $height := .Get "height" | default "max" -}} {{ with $promo_image -}} -{{ $promo_image_big := (.Fill (printf "1920x1080 %s" $image_anchor)) -}} -{{ $promo_image_small := (.Fill (printf "960x540 %s" $image_anchor)) -}} +{{ $promo_image_big := . -}} +{{ $promo_image_small := . -}} +{{ if ne $promo_image.MediaType.SubType "svg" -}} + {{ $promo_image_big = .Fill (printf "1920x1080 %s" $image_anchor) -}} + {{ $promo_image_small = .Fill (printf "960x540 %s" $image_anchor) -}} +{{ end -}}