1
goldsmith-samples/basic/layouts/basic.html

28 lines
602 B
HTML
Raw Normal View History

2016-11-02 02:37:42 +00:00
{{define "header"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<title>{{.Meta.Title}}</title>
</head>
<body>
{{end}}
{{define "footer"}}
</body>
</html>
{{end}}
{{define "page"}}
{{template "header" .}}
<div class="container">
<div class="page-header">
<h1>{{.Meta.Title}}</h1>
</div>
{{.Meta.Content}}
</div>
{{template "footer" .}}
{{end}}