From 03d596db3dc1e90fcd63ac5f203326773de75e28 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 10 Jan 2026 18:42:34 -0500 Subject: automotive spreadsheets --- layouts/_partials/asset_table.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 layouts/_partials/asset_table.html (limited to 'layouts/_partials/asset_table.html') diff --git a/layouts/_partials/asset_table.html b/layouts/_partials/asset_table.html new file mode 100644 index 0000000..116b22d --- /dev/null +++ b/layouts/_partials/asset_table.html @@ -0,0 +1,32 @@ +{{- /* +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. dateFile
+ {{- with os.Stat $fpath -}} + {{- .ModTime | time.Format "2006-01-02" -}} + {{- end -}} + {{ path.Base .Name }}
-- cgit v1.2.3