{{ define "main" }} {{ .Render "header" }}
{{ .Content }}
{{ $author := index .Site.Data.authors ( .Params.author | default "" ) }} {{ $coauthor := index .Site.Data.authors ( .Params.coauthor | default "" ) }} {{ $coauthor2 := index .Site.Data.authors ( .Params.coauthor2 | default "" ) }}
{{ if $author }} {{ end }} {{ if $coauthor }} {{ end }} {{ if $coauthor2 }} {{ end }} {{ if and (and $author $coauthor) $coauthor2 }}

Written by {{ $author.name }}, {{ $coauthor.name }} and {{ $coauthor2.name }} on {{ .Date.Format "Monday January 02, 2006" }}

{{ else if and $author $coauthor }}

Written by {{ $author.name }} and {{ $coauthor.name }} on {{ .Date.Format "Monday January 02, 2006" }}

{{ else if $author }}

Written by {{ $author.name }} on {{ .Date.Format "Monday January 02, 2006" }}

{{ else }}

No author was provided. Written on {{ .Date.Format "Monday January 02, 2006" }}

{{ end }}
{{ if .Params.forum }}
{{ end }} {{ end }}