summaryrefslogtreecommitdiff
path: root/template/index.tmpl
blob: a1ac5a0109f263b7752e470871cd6f75c0513f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{/* This file is combined with the root.tmpl to display the blog index. */}}

{{define "title"}}Article index{{end}}
{{define "content"}}
	<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}}