Skip to content

Commit f605755

Browse files
Merge pull request #1292 from zachlasiuk/demo-functionality
TEMPLATE: Fixed Hugo .135 issue
2 parents d4b4529 + cfc0f1b commit f605755

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
File renamed without changes.

themes/arm-design-system-hugo-theme/layouts/partials/demo-components/llm-chatbot/javascript--llm-chatbot.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@
645645
}
646646
return readStream(); // Read the stream
647647
} else {
648-
console.error('Error sending message to the server');
648+
console.error('Error sending message to the server',error);
649+
console.log(response);
649650
showPopupPostConnection("Problem sending message - try sending a new message.","error");
650651
}
651652
})

themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747

4848

4949
<!-- Get metadata of author from CSV file -->
50-
{{ range $i, $row := getCSV "," "contributors.csv" }}
50+
{{ $csv := resources.Get "contributors.csv" }}
51+
{{ $csv_content := $csv | transform.Unmarshal (dict "delimiter" ",") }}
52+
{{ range $i, $row := $csv_content }}
5153

5254
{{/*
5355
{{ if gt (len $authors_multiple) 0 }}

themes/arm-design-system-hugo-theme/layouts/stats/list.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<!-- find company name of author -->
1616
{{$company := ""}}
1717
{{$author := replace $author_urlized "-" " " | title }}
18-
{{ range $i, $row := getCSV "," "contributors.csv" }}
18+
{{ $csv := resources.Get "contributors.csv" }}
19+
{{ $csv_content := $csv | transform.Unmarshal (dict "delimiter" ",") }}
20+
{{ range $i, $row := $csv_content }}
1921
{{ if eq $author (index $row 0)}}
2022
<!-- Get company name of author -->
2123
{{ $company = index $row 1 }}

0 commit comments

Comments
 (0)