mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 12:11:54 +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*" -}}
|
||||
{{- 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 }}
|
||||
|
@ -13,4 +13,4 @@
|
|||
<div class="w-full h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Reference in a new issue