Update background.html to tolerate svgs

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

View file

@ -18,7 +18,7 @@
{{ if $shouldAddHeaderSpace | default true}} {{ if $shouldAddHeaderSpace | default true}}
<div id="hero" class="h-[150px] md:h-[200px]"></div> <div id="hero" class="h-[150px] md:h-[200px]"></div>
{{ end }} {{ end }}
{{ if $disableImageOptimization }} {{ if or (eq .MediaType.SubType "svg" ) ($disableImageOptimization) }}
{{ with . }} {{ with . }}
<div class="fixed inset-x-0 top-0 h-[800px] single_hero_background nozoom" <div class="fixed inset-x-0 top-0 h-[800px] single_hero_background nozoom"
style="background-image:url({{ .RelPermalink }});"> style="background-image:url({{ .RelPermalink }});">