Skip to content

Commit

Permalink
Merge pull request #892 from GSA/jf/update-hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
jfredrickson authored Apr 29, 2024
2 parents 0f8a77a + 15f9ae3 commit 9a789a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .hugo-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extended_0.96.0
extended_0.125.0
File renamed without changes.
6 changes: 4 additions & 2 deletions layouts/_default/ai-inventory.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ <h1>{{ .Title }}</h1>
{{ .Content }}

<table class="usa-table usa-table--borderless">
{{ with (resources.Get "ai-inventory.csv") | transform.Unmarshal }}
<thead>
{{ range $rowIndex, $rowData := getCSV "," "content/ai-inventory.csv" }}
{{ range $rowIndex, $rowData := . }}
{{ if eq $rowIndex 0 }}
<tr>
<th>{{ index $rowData 1 }}</th>
Expand All @@ -19,7 +20,7 @@ <h1>{{ .Title }}</h1>
{{ end }}
</thead>
<tbody>
{{ range $rowIndex, $rowData := getCSV "," "content/ai-inventory.csv" }}
{{ range $rowIndex, $rowData := . }}
{{ if ne $rowIndex 0 }}
<tr>
<td>{{ index $rowData 1 }}</td>
Expand All @@ -29,6 +30,7 @@ <h1>{{ .Title }}</h1>
{{ end }}
{{ end }}
</tbody>
{{ end }}
</table>

</div>
Expand Down

0 comments on commit 9a789a5

Please sign in to comment.