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

{{define "title"}}Article index{{end}}

{{define "content"}}
<section>
	<h2>{{template "title"}}</h2>
	<dl>
	{{range .Data}}
		<dt><a href="{{.Path}}">{{.Title}}</a></dt>
		<dd>{{template "time" .Time}}
		{{with .Tags}}<div class="tags">{{range .}}{{.}} {{end}}</div>{{end}}
		</dd>
	{{end}}
	</dl>
</section>
{{end}}