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

{{define "title"}}{{.Doc.Title}}{{end}}

{{define "content"}}
	{{with .Doc}}
	{{template "doc" .}}
	{{with .Related}}
		<section>
		<h3>Related articles</h3>
		<ul>
		{{range .}}
			<li><a href="{{.Path}}">{{.Title}}</a></li>
		{{end}}
		</ul>
		</section>
	{{end}}
	{{end}}
{{end}}