mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 23:01:52 +02:00
Update basic.html to support svg
This commit is contained in:
parent
3219a9b79c
commit
adc33f4e6d
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
{{- $featured := $images.GetMatch "*feature*" -}}
|
{{- $featured := $images.GetMatch "*feature*" -}}
|
||||||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
||||||
{{- with $featured -}}
|
{{- with $featured -}}
|
||||||
{{ if $disableImageOptimization }}
|
{{ if or (eq .MediaType.SubType "svg" ) ($disableImageOptimization) }}
|
||||||
{{ with . }}
|
{{ with . }}
|
||||||
<div class="w-full h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div>
|
<div class="w-full h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue