summaryrefslogtreecommitdiff
path: root/themes/blowfish/layouts/partials/hero
diff options
context:
space:
mode:
Diffstat (limited to 'themes/blowfish/layouts/partials/hero')
-rw-r--r--themes/blowfish/layouts/partials/hero/background.html2
-rw-r--r--themes/blowfish/layouts/partials/hero/basic.html2
-rw-r--r--themes/blowfish/layouts/partials/hero/big.html2
-rw-r--r--themes/blowfish/layouts/partials/hero/thumbAndBackground.html4
4 files changed, 5 insertions, 5 deletions
diff --git a/themes/blowfish/layouts/partials/hero/background.html b/themes/blowfish/layouts/partials/hero/background.html
index 1f6e3fb..6679950 100644
--- a/themes/blowfish/layouts/partials/hero/background.html
+++ b/themes/blowfish/layouts/partials/hero/background.html
@@ -41,7 +41,7 @@
style="background-image:url({{ .RelPermalink }});">
{{ 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 }});">
{{ end }}
diff --git a/themes/blowfish/layouts/partials/hero/basic.html b/themes/blowfish/layouts/partials/hero/basic.html
index 4d01bb2..f192800 100644
--- a/themes/blowfish/layouts/partials/hero/basic.html
+++ b/themes/blowfish/layouts/partials/hero/basic.html
@@ -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 ($.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 }}
diff --git a/themes/blowfish/layouts/partials/hero/big.html b/themes/blowfish/layouts/partials/hero/big.html
index 4b61b83..60e5977 100644
--- a/themes/blowfish/layouts/partials/hero/big.html
+++ b/themes/blowfish/layouts/partials/hero/big.html
@@ -48,7 +48,7 @@
</figure>
{{ end }}
{{ else }}
- {{ with .Resize "1200x" }}
+ {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}
<figure>
<img class="w-full rounded-lg single_hero_round nozoom" alt="{{ $alt }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
{{ if $caption }}
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">