backgrounds and feature images support svg

This commit is contained in:
Nuno Coração
2024-03-09 23:44:14 +00:00
parent b490f97b8b
commit 8bbd8b8626
11 changed files with 91 additions and 15 deletions

View File

@@ -30,10 +30,12 @@
(and ($.Site.Params.list.layoutBackgroundHeaderSpace | default true) ($isParentList))
) }}
{{- with $featured -}}
{{ if $shouldAddHeaderSpace | default true}}
<div id="hero" class="h-[150px] md:h-[200px]"></div>
{{ end }}
{{ if $disableImageOptimization }}
{{ if or $disableImageOptimization (strings.HasSuffix $featured ".svg")}}
{{ with . }}
<div class="fixed inset-x-0 top-0 h-[800px] single_hero_background nozoom"
style="background-image:url({{ .RelPermalink }});">