summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/asset_table.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_partials/asset_table.html')
-rw-r--r--layouts/_partials/asset_table.html31
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>