summaryrefslogtreecommitdiff
path: root/template/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/index.tmpl')
-rw-r--r--template/index.tmpl11
1 files changed, 4 insertions, 7 deletions
diff --git a/template/index.tmpl b/template/index.tmpl
index a1ac5a0..d74f415 100644
--- a/template/index.tmpl
+++ b/template/index.tmpl
@@ -1,13 +1,10 @@
{{/* This file is combined with the root.tmpl to display the blog index. */}}
{{define "title"}}Article index{{end}}
+
{{define "content"}}
+<section>
<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>
+ {{template "list" .Data}}
+</section>
{{end}}