<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{{ block "title" . }} {{ .Site.Title }} {{ end }}</title> <link rel="stylesheet" type="text/css" href='{{ "style.css" | absURL}}'> {{ range .AlternativeOutputFormats -}} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} </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>