From 586c3a5b76414ac8b4b91fdec5e0bfcf6e8279b8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Sep 2026 09:28:49 +0000 Subject: [PATCH 1/4] Initial plan From 0b38fa660e6070cdb1948dea2d8123296e538b92 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Sep 2026 09:32:32 +0000 Subject: [PATCH 2/4] Fix Hugo table shortcode for CI build Co-authored-by: laurentperrinet <381808+laurentperrinet@users.noreply.github.com> --- layouts/shortcodes/table.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index bb8cfaf..a390315 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -10,12 +10,8 @@ {{ $csv := "" }} {{ if $is_remote }} - {{ with try (resources.GetRemote $src) }} - {{ with .Err }} - {{ errorf "Unable to retrieve CSV file %q: %s" $src . }} - {{ else with .Value }} - {{ $csv = .Content }} - {{ end }} + {{ with resources.GetRemote $src }} + {{ $csv = .Content }} {{ end }} {{ else }} {{ $csv = readFile $src }} From ba6e9f5a4791ceffb480865b42c3de2ff576040a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Sep 2026 09:33:06 +0000 Subject: [PATCH 3/4] Restore remote CSV fetch errors in shortcode Co-authored-by: laurentperrinet <381808+laurentperrinet@users.noreply.github.com> --- layouts/shortcodes/table.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index a390315..358f5e8 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -12,6 +12,8 @@ {{ if $is_remote }} {{ with resources.GetRemote $src }} {{ $csv = .Content }} + {{ else }} + {{ errorf "Unable to retrieve CSV file %q" $src }} {{ end }} {{ else }} {{ $csv = readFile $src }} From 445646adf9a839a06a82aba7407a8c03caf9d56f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 28 Sep 2026 09:33:49 +0000 Subject: [PATCH 4/4] Preserve detailed remote CSV fetch errors Co-authored-by: laurentperrinet <381808+laurentperrinet@users.noreply.github.com> --- layouts/shortcodes/table.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index 358f5e8..efef8ab 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -11,7 +11,11 @@ {{ $csv := "" }} {{ if $is_remote }} {{ with resources.GetRemote $src }} - {{ $csv = .Content }} + {{ with .Err }} + {{ errorf "Unable to retrieve CSV file %q: %s" $src . }} + {{ else }} + {{ $csv = .Content }} + {{ end }} {{ else }} {{ errorf "Unable to retrieve CSV file %q" $src }} {{ end }}