mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-30 15:22:09 +00:00
6 lines
284 B
HTML
6 lines
284 B
HTML
|
{{ $resource := resources.Get . -}}
|
||
|
{{- $target_path_formatStr := (replaceRE `(\.[^\.]*)$` ".%d$1" .) -}}
|
||
|
{{- $cacheBuster := $resource.Content | crypto.FNV32a -}}
|
||
|
{{- $target_path := printf $target_path_formatStr $cacheBuster -}}
|
||
|
{{- return resources.Copy $target_path $resource -}}
|