mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-04 19:24:42 +08:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user