mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 14:14:48 +00:00
fix: Slider bg position
This commit is contained in:
1 parent
45734d8e98
commit
47f37ee211
1 file changed
+1
-1
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user