add parameter backgroundImageWidth + english documentation

This commit is contained in:
Jörn-Michael Miehe
2024-08-08 01:36:30 +02:00
parent b755978bae
commit 090fd09ccf
6 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
</figure>
{{ end }}
{{ else }}
{{ with .Resize "1200x" }}
{{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
<figure>
<img class="w-full rounded-lg single_hero_round nozoom" alt="{{ $alt }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ if $caption }}