diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-01-10 20:04:43 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-01-10 20:04:43 -0500 |
| commit | ca484eaeda69237554fe0758ff647478362fab07 (patch) | |
| tree | 78ee39b2afd39045159da11147c5a053fd9a374f /layouts/_partials/asset_table.html | |
| parent | f2cfee9a911be29d15847f698f6e3609dda8cd8d (diff) | |
| download | samanthony.xyz-ca484eaeda69237554fe0758ff647478362fab07.zip | |
record file modification times
Diffstat (limited to 'layouts/_partials/asset_table.html')
| -rw-r--r-- | layouts/_partials/asset_table.html | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/layouts/_partials/asset_table.html b/layouts/_partials/asset_table.html deleted file mode 100644 index 461f3ce..0000000 --- a/layouts/_partials/asset_table.html +++ /dev/null @@ -1,31 +0,0 @@ -{{- /* -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") }} -*/}} - -<table> - <thead> - <tr> - <th>Mod. date</th> - <th>File</th> - </tr> - </thead> - <tbody> - {{- range . }} - <tr> - <td> - {{- with os.Stat (path.Join "assets/" .Name) -}} - {{- .ModTime | time.Format "2006-01-02" -}} - {{- end -}} - </td> - <td><a href="{{ .RelPermalink }}">{{ path.Base .Name }}</a></td> - </tr> - {{- end }} - </tbody> -</table> |