Update big.html to tolerate svgs

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

View file

@ -6,7 +6,7 @@
{{- $alt := .Page.Title -}}
{{- with .Page.Params.alt }}{{ $alt = . }}{{ end -}}
{{- with $featured -}}
{{ if $disableImageOptimization }}
{{ if or (eq .MediaType.SubType "svg" ) ($disableImageOptimization) }}
{{ with . }}
<img class="w-full rounded-lg single_hero_round nozoom" alt="{{ $alt }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}
@ -15,4 +15,4 @@
<img class="w-full rounded-lg single_hero_round nozoom" alt="{{ $alt }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ end }}
{{ end }}
{{- end -}}
{{- end -}}