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:
George Cushen committed 2026-01-10 03:43:34 +00:00
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 := "" }}