✨ add parameter backgroundImageWidth + english documentation

This commit is contained in:
Jörn-Michael Miehe committed 2024-08-08 01:36:30 +02:00
1 parent b755978bae
commit 090fd09ccf
6 files changed
+7 -5

No files matched your search

+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 "1200x" }}
{{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "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 }}