{{- /* For a given collection of global resources, render a table with the modification date of each resource and a link to the resource. The resources must be from the assets/ directory in order to get their modification times. @context {,} resource.Resources @example: {{ partial "asset_table.html" (resources.Match "spreadsheets/*.ods") }} */}} {{ range . }} {{- $fpath := printf "assets/%s" .Name -}} {{- end }}
Mod. date File
{{- with os.Stat $fpath -}} {{- .ModTime | time.Format "2006-01-02" -}} {{- end -}} {{ path.Base .Name }}