{{ define "main" }}

{{ .Title }}

{{- with .Params.author }} {{- $names := slice }} {{- range . }}{{ $names = $names | append .name }}{{ end }}

{{ i18n "published_by" }}: {{ delimit $names ", " ", and " }}

{{- end }} {{- if ne (.Date.Format "2006") "0001" }}

{{ i18n "published_on" }}: {{ .Date.Format "2006-01-02" }}

{{- end }} {{- if ne .Date .Lastmod }}

{{ i18n "updated_on" }}: {{ .Lastmod.Format "2006-01-02" }}

{{- end }} {{- if .IsTranslated }}

{{- i18n "available_translations" }}: | {{ range .Translations }} {{ with .Language.LanguageName }}{{ . }}{{ else }}{{ .Lang }}{{ end }} | {{- end }}

{{- end }}

{{ $is_toc := cond (ne .Params.toc nil) .Params.toc $.Site.Params.toc }} {{ if $is_toc }} {{ .TableOfContents }} {{ end }}
{{ .Content }}
{{ end }}