summaryrefslogtreecommitdiff
path: root/template/index.tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-19 16:17:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-19 16:17:17 +0200
commit09f85ffd3eb84c605ef0b851a054fce310b9c8cf (patch)
tree0c9915e59ffc12ff6c23329e43f44fa20e88eef0 /template/index.tmpl
parenta344cef5099d4bf5416cec9601557e44ba2343b7 (diff)
Update templates
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}}