aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmpl/index11
1 files changed, 7 insertions, 4 deletions
diff --git a/tmpl/index b/tmpl/index
index dffc1c8..7a4eba5 100644
--- a/tmpl/index
+++ b/tmpl/index
@@ -1,9 +1,12 @@
{{define "title"}}Index{{end}}
{{define "content"}}
-<dl>
+<table>
{{range .Pages}}
- <dt><a href="/view/{{.Name}}">{{.Name}}</a></dt>
- <dd>{{.ModTime.Format "15:04 2 Jan 2006"}} &mdash; {{.Size}} bytes</dd>
+ <tr>
+ <td><a href="/view/{{.Name}}">{{.Name}}</a></td>
+ <td>{{.ModTime.Format "2006 Jan 2 15:04"}}</td>
+ <td>{{.Size}} bytes</td>
+ </tf>
{{end}}
-</dl>
+</table>
{{end}}