summaryrefslogtreecommitdiff
path: root/template/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/index.tmpl')
-rw-r--r--template/index.tmpl21
1 files changed, 8 insertions, 13 deletions
diff --git a/template/index.tmpl b/template/index.tmpl
index 433ac2c..a1ac5a0 100644
--- a/template/index.tmpl
+++ b/template/index.tmpl
@@ -2,17 +2,12 @@
{{define "title"}}Article index{{end}}
{{define "content"}}
-
- <h3>{{template "title"}}</h3>
-
- <table id="index">
- {{range .Data}}
- <tr>
- <td><time datetime="{{.Time.Format "2006-01-02 15:04"}}">{{.Time.Format "2 January 2006"}}</time></td>
- <td><a href="{{.Path}}">{{.Title}}</a>
- {{with .Tags}}<br><span id="tags">{{range .}}{{.}} {{end}}</span>{{end}}</td>
- </tr>
- {{end}}
- </table>
-
+ <h3>{{template "title"}}</h3>
+ <dl>
+ {{range .Data}}
+ <dt><time datetime="{{.Time.Format "2006-01-02 15:04"}}">{{.Time.Format "2 January 2006"}}</time></dt>
+ <dd><a href="{{.Path}}">{{.Title}}</a>
+ {{with .Tags}}<br><span id="tags">{{range .}}{{.}} {{end}}</span>{{end}}</dd>
+ {{end}}
+ </dl>
{{end}}