From 47f37ee211e80560d734edd5f508525c5cc66d3c Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 23 Feb 2022 21:36:57 +0000 Subject: [PATCH] fix: Slider bg position --- wowchemy/layouts/partials/widgets/slider.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wowchemy/layouts/partials/widgets/slider.html b/wowchemy/layouts/partials/widgets/slider.html index 6990fb63..f9371322 100644 --- a/wowchemy/layouts/partials/widgets/slider.html +++ b/wowchemy/layouts/partials/widgets/slider.html @@ -27,7 +27,7 @@ {{ if $item.background.media }} {{ $bg_img := resources.Get (printf "media/%s" $item.background.media) }} {{ if $bg_img }} - {{ $style_bg = printf "%sbackground-image: url('%s'); background-repeat: no-repeat; background-position: %s; background-size: cover; " $style_bg $bg_img.Permalink ($item.image_position | default "center") }} + {{ $style_bg = printf "%sbackground-image: url('%s'); background-repeat: no-repeat; background-position: %s; background-size: cover; " $style_bg $bg_img.Permalink ($item.background.position | default "center") }} {{ else }} {{ errorf "Couldn't find `%s` in the `assets/media/` folder - please add it." $item.overlay_img }} {{ end }}