summaryrefslogtreecommitdiff
path: root/template/article.tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-06 14:59:25 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-06 14:59:25 +0200
commit1ca0e11c15d4b5692b9b95c660689fd245ee66bd (patch)
treeb386cfc06f73a9ce92b9bd977fa204342e13cbc9 /template/article.tmpl
parent8b0fb5ba05165d5d57e1fd474e40f18f9acf5fb6 (diff)
Add templates
Diffstat (limited to 'template/article.tmpl')
-rw-r--r--template/article.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/template/article.tmpl b/template/article.tmpl
new file mode 100644
index 0000000..eaa936a
--- /dev/null
+++ b/template/article.tmpl
@@ -0,0 +1,7 @@
+{{/* This file is combined with the root.tmpl to display a single article. */}}
+
+{{define "title"}}{{.Doc.Title}}{{end}}
+{{define "content"}}
+ {{template "doc" .Doc}}
+{{end}}
+