parameter backgroundImageWidth default function usage

This commit is contained in:
Jörn-Michael Miehe
2024-08-08 02:00:47 +02:00
parent eebadb405f
commit b772b5ed97
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
<div class="w-full h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div>
{{ end }}
{{ else }}
{{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
{{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}
<div class="w-full h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div>
{{ end }}
{{ end }}