Update basic.html to support svg

This commit is contained in:
Wolf Noble 2023-08-24 15:49:51 -05:00 committed by GitHub
parent 3219a9b79c
commit adc33f4e6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 . }}
<div class="w-full h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div>
{{ end }}