From 74e2a1d1304a8d81ade6266f54fba8d50adddc28 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 14 Jun 2015 14:11:44 +0200 Subject: Use dl for index, move related into article --- template/article.tmpl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'template/article.tmpl') 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}} +
+

Related articles

+ +
+ {{end}} + {{end}} {{end}} - -- cgit v1.2.3