summaryrefslogtreecommitdiff
path: root/htdocs/template/article.tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-01-20 12:35:37 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-01-20 12:35:37 +0100
commitf12d854fcf5e46fe526a92a316b2c6ec118fcea3 (patch)
tree284d40c6eb60a5163fee6fc4bb2007937a539a1b /htdocs/template/article.tmpl
parent312ecbfa56c625903f1b1d56408326145b2fce2d (diff)
Replace fcgi with plain http server
Diffstat (limited to 'htdocs/template/article.tmpl')
-rw-r--r--htdocs/template/article.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/htdocs/template/article.tmpl b/htdocs/template/article.tmpl
new file mode 100644
index 0000000..e461ce2
--- /dev/null
+++ b/htdocs/template/article.tmpl
@@ -0,0 +1,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}}
+ <h5>Related articles</h5>
+ <ul>
+ {{range .}}<li><a href="{{.Path}}">{{.Title}}</a></li>{{end}}
+ </ul>
+ {{end}}
+ {{end}}
+{{end}}