aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 01:11:53 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 01:11:53 +0100
commitff496ec12609648b7abe65994a8cc5aa02977e2f (patch)
treef0bd19e28703d4e808f2f82a28a246e14200f0a1
parent82ff6ae2a289c7fc00c2007961d70994af51d1fb (diff)
Use definition list for index
-rw-r--r--tmpl/index8
1 files changed, 4 insertions, 4 deletions
diff --git a/tmpl/index b/tmpl/index
index bd9472a..d0fcf87 100644
--- a/tmpl/index
+++ b/tmpl/index
@@ -1,9 +1,9 @@
{{define "title"}}Index{{end}}
{{define "content"}}
-<ul>
+<dl>
{{range .Pages}}
- <li><a href="/view/{{.Name}}">{{.Name}}</a>
- ({{.ModTime.Format "2 Jan 2006"}})</li>
+ <dt><a href="/view/{{.Name}}">{{.Name}}</a></dt>
+ <dd>{{.ModTime.Format "2 Jan 2006"}}</dd>
{{end}}
-</ul>
+</dl>
{{end}}