{{if eq .Type "post" }} {{ partial "content.header.html" . }} {{ range .Pages }} {{.Title}} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ else if eq .Type "notes" }} {{ range .Pages }} {{.Title}} {{ end }} {{ end }} {{ partial "footer.html" . }}