summaryrefslogtreecommitdiff
path: root/template/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/index.tmpl')
-rw-r--r--template/index.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/template/index.tmpl b/template/index.tmpl
new file mode 100644
index 0000000..433ac2c
--- /dev/null
+++ b/template/index.tmpl
@@ -0,0 +1,18 @@
+{{/* This file is combined with the root.tmpl to display the blog index. */}}
+
+{{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>
+
+{{end}}