<!DOCTYPE html><html>
<head>
<metacharset="utf-8">
<title>{{block"title".}}<!-- Blocks may include default content. -->{{.Site.Title}}{{end}}</title>
</head>
<body>
<!-- Code that all your templates share, like a header -->{{block"main".}}<!-- The part of the page that begins to differ between templates -->{{end}}{{block"footer".}}<!-- More shared code, perhaps a footer but that can be overridden if need be in -->{{end}} </body>
</html>
{{define"title"}}<!-- This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example-->{{.Title}}–{{.Site.Title}}{{end}}{{define"main"}} <h1>{{.Title}}</h1>
{{.Content}}{{end}}