{{ define "postContent" }} {{ if .Image }} <img src="data:image/png;base64,{{ .Image }}" alt="anon-image" width="180" /> {{ end }} <h2> {{ .AuthorId }} - {{ defaultToVal .AuthorName }} - {{ dateTimeToString .CreatedAt }} </h2> <blockquote>{{ .Body }}</blockquote> {{ end }}