mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 06:13:14 +00:00
fix(blox): solve variable scoping regression in cta-image-paragraph
- Lift $image_path variable declaration in cta-image-paragraph to fix scope error - Remove unused $banner_path variable in resume-biography
This commit is contained in:
1 parent
3323f61390
commit
af716f0c18
2 files changed
+2
-2
No files matched your search
@@ -31,8 +31,9 @@
|
||||
{{/* Resolve image from page bundle, site assets, remote, or static URLs */}}
|
||||
{{ $image_resource := false }}
|
||||
{{ $image_url := "" }}
|
||||
{{ $image_path := "" }}
|
||||
{{ if $image_name }}
|
||||
{{ $image_path := strings.TrimSpace (printf "%v" $image_name) }}
|
||||
{{ $image_path = strings.TrimSpace (printf "%v" $image_name) }}
|
||||
{{ $is_remote := or (strings.HasPrefix $image_path "http://") (strings.HasPrefix $image_path "https://") }}
|
||||
|
||||
{{ if $is_remote }}
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
{{ with index $banner "filename" }}{{ $banner_filename = strings.TrimSpace (printf "%v" .) }}{{ end }}
|
||||
{{ end }}
|
||||
{{ if $banner_filename }}
|
||||
{{ $banner_path := strings.TrimPrefix "/" $banner_filename }}
|
||||
{{/* Resolve image from page bundle, site assets, remote, or static URLs */}}
|
||||
{{ $image_resource := false }}
|
||||
{{ $image_url := "" }}
|
||||
|
||||
Reference in new issue
Block a user