summaryrefslogtreecommitdiff
path: root/template/index.tmpl
blob: 433ac2c3317658b60f3bb87e6acf94979a28e51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}}