summaryrefslogtreecommitdiff
path: root/template/index.tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-14 14:11:44 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-14 14:11:44 +0200
commit74e2a1d1304a8d81ade6266f54fba8d50adddc28 (patch)
tree985c54aa002784ea932ae8e81aeafc92f34caa74 /template/index.tmpl
parent9fef1f3680590b47d0e91b4d361509a2c65d0f34 (diff)
Use dl for index, move related into article
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}}