diff --git a/layouts/partials/hero/basic.html b/layouts/partials/hero/basic.html index 11377928..1275b317 100644 --- a/layouts/partials/hero/basic.html +++ b/layouts/partials/hero/basic.html @@ -4,7 +4,7 @@ {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} - {{ if $disableImageOptimization }} + {{ if or (eq .MediaType.SubType "svg" ) ($disableImageOptimization) }} {{ with . }}
{{ end }} @@ -13,4 +13,4 @@ {{ end }} {{ end }} -{{- end -}} \ No newline at end of file +{{- end -}}