{{ define "header" }} {{ $author := index .Site.Data.authors ( .Params.author | default "" ) }}
{{ .Title }}
{{ if $author }}
Written by {{ $author.name }} on {{ .Date.Format $.Site.Params.fmt.Date }}
{{ else }}
Written on {{ .Date.Format $.Site.Params.fmt.Date }}
{{ end }}
{{ end }} {{ define "main" }}
{{ .Content }}
{{ if .Params.forum }}
Continue the discussion on our forums.
{{ end }} {{ end }} {{ define "css" }} {{ end }} {{ define "scripts" }} {{ end }}