diff --git a/layouts/partials/hero/background.html b/layouts/partials/hero/background.html
index 2cf1d6ea..66799507 100644
--- a/layouts/partials/hero/background.html
+++ b/layouts/partials/hero/background.html
@@ -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") }}
{{ end }}
diff --git a/layouts/partials/hero/basic.html b/layouts/partials/hero/basic.html
index 87ec4f14..f1928003 100644
--- a/layouts/partials/hero/basic.html
+++ b/layouts/partials/hero/basic.html
@@ -26,7 +26,7 @@
{{ end }}
{{ else }}
- {{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
+ {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html
index 30562f2d..60e59772 100644
--- a/layouts/partials/hero/big.html
+++ b/layouts/partials/hero/big.html
@@ -48,7 +48,7 @@
{{ end }}
{{ else }}
- {{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
+ {{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}
{{ if $caption }}
diff --git a/layouts/partials/hero/thumbAndBackground.html b/layouts/partials/hero/thumbAndBackground.html
index bc9882c1..5f974c4e 100644
--- a/layouts/partials/hero/thumbAndBackground.html
+++ b/layouts/partials/hero/thumbAndBackground.html
@@ -25,7 +25,7 @@
{{ end }}
{{ else }}
-{{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
+{{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}
{{ end }}
{{ end }}
@@ -44,7 +44,7 @@
{{ end }}
{{ else }}
-{{ with .Resize (print (default "1200" $.Site.Params.backgroundImageWidth) "x") }}
+{{ with .Resize (print ($.Site.Params.backgroundImageWidth | default "1200") "x") }}