From 2754d1590f7af5a1e7c07aef2f22bac810da4d24 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 10 Jan 2026 03:53:05 +0000 Subject: [PATCH] fix(blox): resolve template syntax errors in cta-image-paragraph - Fix malformed if/else block causing "undefined variable $title" - Add missing closing div tags to correct HTML generation - Remove orphaned {{ end }} tag preventing proper parsing --- modules/blox/blox/cta-image-paragraph/block.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/blox/blox/cta-image-paragraph/block.html b/modules/blox/blox/cta-image-paragraph/block.html index cb494b7b..1f19eec1 100644 --- a/modules/blox/blox/cta-image-paragraph/block.html +++ b/modules/blox/blox/cta-image-paragraph/block.html @@ -87,13 +87,14 @@ height="{{$image_to_render.Height}}" alt="{{$title | plainify}}" {{ if (modBool $idx 2)}}style="order: 1"{{end}}> {{ end }} + {{ else if $image_url }}
{{ $is_external := or (strings.HasPrefix $image_url "http://") (strings.HasPrefix $image_url "https://") }} {{$title | plainify}} - {{ end }} +
{{ else }} {{ warnf "%s uses the `cta-image-paragraph` blox which specifies a non-existent `image` at `assets/%s`. Skipping this item." $page.File.Path $image_path }} {{ end }}