Changed .Var to .Doc in Markdown templates

Put the title into the .Doc variables as well.
Changed the test template file to use new names.
This commit is contained in:
Maxime
2015-07-24 22:14:05 +02:00
parent 97dcc79a7f
commit 24bdb433c9
2 changed files with 11 additions and 13 deletions

View File

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.Title}}</title>
<title>{{.Doc.title}}</title>
</head>
<body>
{{.Include "header.html"}}
Welcome to {{.Var.sitename}}!
{{.Markdown}}
Welcome to {{.Doc.sitename}}!
{{.Doc.body}}
</body>
</html>