{{ define "main" }} {{ .Title }} Post by {{site.Params.author}} {{ .PublishDate.Format "Jan 02, 2006" }} {{ if eq .Params.image "cover.jpg" }} {{ else }} {{ end }} {{.Content}} {{partial "sidebar.html" . }} {{ end }}