From adc33f4e6d014af1fbcf6d9dc9e86565fe156f6e Mon Sep 17 00:00:00 2001 From: Wolf Noble <1680659+wolfspyre@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:49:51 -0500 Subject: [PATCH] Update basic.html to support svg --- layouts/partials/hero/basic.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -}}