Explorar o código

fix: Slider bg position

George Cushen %!s(int64=2) %!d(string=hai) anos
pai
achega
47f37ee211
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wowchemy/layouts/partials/widgets/slider.html

+ 1 - 1
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 }}