summaryrefslogtreecommitdiff
path: root/template/article.tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-14 14:11:44 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-14 14:11:44 +0200
commit74e2a1d1304a8d81ade6266f54fba8d50adddc28 (patch)
tree985c54aa002784ea932ae8e81aeafc92f34caa74 /template/article.tmpl
parent9fef1f3680590b47d0e91b4d361509a2c65d0f34 (diff)
Use dl for index, move related into article
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}}
-