aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 01:15:55 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 01:15:55 +0100
commit2a6aed83674637be844cab00ad72cb2444538ce0 (patch)
treebbf2ab68ea3ec7a736b8f79390ffee6b21abcdc8
parentff496ec12609648b7abe65994a8cc5aa02977e2f (diff)
Add size
-rw-r--r--tmpl/index4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmpl/index b/tmpl/index
index d0fcf87..279fac8 100644
--- a/tmpl/index
+++ b/tmpl/index
@@ -2,8 +2,8 @@
{{define "content"}}
<dl>
{{range .Pages}}
- <dt><a href="/view/{{.Name}}">{{.Name}}</a></dt>
- <dd>{{.ModTime.Format "2 Jan 2006"}}</dd>
+ <dt><a href="/view/{{.Name}}">{{.Name}}</a> {{.Size}} bytes</dt>
+ <dd>{{.ModTime.Format "15:04 2 Jan 2006"}}</dd>
{{end}}
</dl>
{{end}}