mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
fix(widget): use absolute image path for Hero Carousel
relURL does not function properly in style tag under certain conditions
This commit is contained in:
1 parent
2cca75504c
commit
35d79b42a3
1 file changed
+1
-1
@@ -20,7 +20,7 @@
|
||||
{{ if $item.overlay_img }}
|
||||
background-image:
|
||||
{{ if $item.overlay_filter }}linear-gradient(rgba(0, 0, 0, {{ $item.overlay_filter }}), rgba(0, 0, 0, {{ $item.overlay_filter }})), {{ end }}
|
||||
url('{{ printf "img/%s" $item.overlay_img | relURL }}');
|
||||
url('{{ printf "/img/%s" $item.overlay_img | absURL }}');
|
||||
{{ end }}
|
||||
;">
|
||||
<div class="container" style="text-align: {{$item.align | default "left"}};">
|
||||
|
||||
Reference in new issue
Block a user