{{ define "main" }} {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} {{ .Title }} {{ .Date.Format $dateFormat }} {{- .Content -}} {{ end }} {{ define "toc" }} {{ partial "docs/toc" . }} {{ end }}