Skip to content

Commit 267e57e

Browse files
committed
Update to latest theme
1 parent b97c5f1 commit 267e57e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/resources
22
# Mac
3-
.DS_Store
3+
.DS_Store
4+
public

layouts/shortcodes/repo_stat_table.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<table>
22
<tbody>
3-
{{ $url := "static/csv/repository_status.csv" }}
3+
{{ $filePath := "csv/repository_status.csv" }}
44
{{ $sep := "," }}
5-
{{ range $i, $r := getCSV $sep $url }}
5+
{{ $csvFile := resources.Get $filePath }}
6+
{{ $csv := $csvFile | transform.Unmarshal (dict "delimiter" $sep) }}
7+
{{ range $i, $r := $csv }}
68
<tr>
79
<td>{{ index $r 0 }}</td>
810
<td>{{ index $r 1 }}</td>

themes/hugo-book

0 commit comments

Comments
 (0)