diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html index 90ee4ea3..3d1cb04d 100644 --- a/layouts/partials/hero/big.html +++ b/layouts/partials/hero/big.html @@ -6,7 +6,11 @@ {{- $alt := .Page.Title -}} {{- with .Page.Params.alt }}{{ $alt = . }}{{ end -}} {{- with $featured -}} - {{ if or (eq .MediaType.SubType "svg" ) ($disableImageOptimization) }} + {{ if eq .MediaType.SubType "svg" }} + {{ with . }} + {{ $alt }} + {{ end }} + {{ else if $disableImageOptimization }} {{ with . }} {{ $alt }} {{ end }}