mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-25 18:22:09 +00:00
b07f06e009
- Replace getCSV with resources.Get | transform.Unmarshal. This required moving my CSV data to the assets directory, for some reason. Ugh. - Switch from site.LastChange to site.Lastmod.
5 lines
236 B
HTML
5 lines
236 B
HTML
{{- $rewritesDict := dict "" "" -}}
|
|
{{- range $i, $r := (resources.Get "csv/rewrites.csv" | transform.Unmarshal) -}}
|
|
{{- $rewritesDict = merge $rewritesDict (dict (index $r 0) (index $r 1)) -}}
|
|
{{- end -}}
|
|
{{- return $rewritesDict -}}
|