mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-26 10:22:10 +00:00
19d5fe2b00
Use partialCached to avoid any perf penalty. TODO: limit the scope I pass to them. I noticed a teeny tiny perf improvement after doing this, probably because now some giant data structures only need to be generated once.
5 lines
212 B
HTML
5 lines
212 B
HTML
{{- $rewritesDict := dict "" "" -}}
|
|
{{- range $i, $r := (getCSV "," "/csv/rewrites.csv") -}}
|
|
{{- $rewritesDict = merge $rewritesDict (dict (index $r 0) (index $r 1)) -}}
|
|
{{- end -}}
|
|
{{- return $rewritesDict -}}
|