{{- define "main" }} {{- if not .IsHome | and .Title }} <header> <h1>{{ .Title }}</h1> {{- partial "breadcrumbs.html" . }} {{- if .Params.Date }} <strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }} </header> {{- end }} <main> {{- if .Params.external_links }} <div class="links"> {{- range .Params.external_links }} <a href="{{ .url | absURL }}">{{ .name }}</a> {{- end }} </div> {{- end }} {{ .Content }} </main> {{- end }}