summaryrefslogtreecommitdiff
path: root/template/article.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/article.tmpl')
-rw-r--r--template/article.tmpl15
1 files changed, 13 insertions, 2 deletions
diff --git a/template/article.tmpl b/template/article.tmpl
index eaa936a..a57f084 100644
--- a/template/article.tmpl
+++ b/template/article.tmpl
@@ -2,6 +2,17 @@
{{define "title"}}{{.Doc.Title}}{{end}}
{{define "content"}}
- {{template "doc" .Doc}}
+ {{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}}
-