diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
commit | 8f3d03b1888fed23e6aa07d6077045e673357481 (patch) | |
tree | a914b8f43b8486380ccc1c35721b28da2ff7986a /themes/blowfish/layouts/partials/hero/thumbAndBackground.html | |
parent | 8db6bd0e555dca050d7d885582100c5ca5ba3aa2 (diff) |
Diffstat (limited to 'themes/blowfish/layouts/partials/hero/thumbAndBackground.html')
-rw-r--r-- | themes/blowfish/layouts/partials/hero/thumbAndBackground.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/blowfish/layouts/partials/hero/thumbAndBackground.html b/themes/blowfish/layouts/partials/hero/thumbAndBackground.html index 4b807ac..5f974c4 100644 --- a/themes/blowfish/layouts/partials/hero/thumbAndBackground.html +++ b/themes/blowfish/layouts/partials/hero/thumbAndBackground.html @@ -25,7 +25,7 @@ <div class="w-full rounded-md 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 ($.Site.Params.backgroundImageWidth | default "1200") "x") }} <div class="w-full rounded-md h-36 md:h-56 lg:h-72 single_hero_basic nozoom" style="background-image:url({{ .RelPermalink }});"></div> {{ end }} {{ end }} @@ -44,7 +44,7 @@ </div> </div>{{ end }} {{ else }} -{{ with .Resize "1200x" }} +{{ 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 }});"> <div class="absolute inset-0 bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal"> |