aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 01:09:08 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 01:09:08 +0100
commit82ff6ae2a289c7fc00c2007961d70994af51d1fb (patch)
treece17a603cfcd17c1b9aab59a0f52bbcae3de2754 /tmpl
parentcaf2c67a6eabef6167c9c8007763c78af90a040f (diff)
Show modtime
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/index3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmpl/index b/tmpl/index
index d95deca..bd9472a 100644
--- a/tmpl/index
+++ b/tmpl/index
@@ -2,7 +2,8 @@
{{define "content"}}
<ul>
{{range .Pages}}
-<li><a href="/view/{{.}}">{{.}}</a></li>
+ <li><a href="/view/{{.Name}}">{{.Name}}</a>
+ ({{.ModTime.Format "2 Jan 2006"}})</li>
{{end}}
</ul>
{{end}}