summaryrefslogtreecommitdiff
path: root/template/index.tmpl
blob: 1803dd5504131ea68e7d2f521c6145b839240f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{/* 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>
	<ul class="list-group">
	{{range .Data}}
		<li class="list-group-item">
			<div class="d-flex justify-content-between">
			<a href="{{.Path}}">{{.Title}}</a>
			{{with .Tags}}
				<span>
				{{range .}}<span class="badge badge-default">{{.}}</span> {{end}}
				</span>
			{{end}}
			</div>
			<div>{{template "time" .Time}}</div>
		</li>
	{{end}}
	</ul>
	</section>
{{end}}