summaryrefslogtreecommitdiff
path: root/template/article.tmpl
blob: 426ce9f71296b4507c30256910b1adaa54f28862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{/* 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>
		{{template "list" .}}
		</section>
	{{end}}
	{{end}}
{{end}}