Skip to content

Commit

Permalink
Merge pull request #1292 from zachlasiuk/demo-functionality
Browse files Browse the repository at this point in the history
TEMPLATE: Fixed Hugo .135 issue
  • Loading branch information
jasonrandrews authored Oct 4, 2024
2 parents d4b4529 + cfc0f1b commit f605755
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,8 @@
}
return readStream(); // Read the stream
} else {
console.error('Error sending message to the server');
console.error('Error sending message to the server',error);
console.log(response);
showPopupPostConnection("Problem sending message - try sending a new message.","error");
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@


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

{{/*
{{ if gt (len $authors_multiple) 0 }}
Expand Down
4 changes: 3 additions & 1 deletion themes/arm-design-system-hugo-theme/layouts/stats/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
<!-- find company name of author -->
{{$company := ""}}
{{$author := replace $author_urlized "-" " " | title }}
{{ range $i, $row := getCSV "," "contributors.csv" }}
{{ $csv := resources.Get "contributors.csv" }}
{{ $csv_content := $csv | transform.Unmarshal (dict "delimiter" ",") }}
{{ range $i, $row := $csv_content }}
{{ if eq $author (index $row 0)}}
<!-- Get company name of author -->
{{ $company = index $row 1 }}
Expand Down

0 comments on commit f605755

Please sign in to comment.