aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-24 01:03:32 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-24 01:03:32 +0100
commit7a53115ecc61d6b1c40be754ea2c19688b6f96a0 (patch)
treef8d37b003cb513812f122723b575116d06283e0d
parent0d4fa13059aee96e4d0af33009f06fd856a7f5f0 (diff)
Switch to table
-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}}