parameter backgroundImageWidth default function usage

This commit is contained in:
Jörn-Michael Miehe committed 2024-08-08 02:00:47 +02:00
1 parent eebadb405f
commit b772b5ed97
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@
style="background-image:url({{ .RelPermalink }});">
{{ end }}
{{ else }}
{{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
{{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}
<div class="fixed inset-x-0 top-0 h-[800px] single_hero_background nozoom"
style="background-image:url({{ .RelPermalink }});">
{{ end }}