{{ 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 }}
{{ i18n "published_by" }}: {{ delimit $names ", " ", and " }}
{{ i18n "published_on" }}: {{ .Date.Format "2006-01-02" }}
{{ i18n "updated_on" }}: {{ .Lastmod.Format "2006-01-02" }}
{{- i18n "available_translations" }}: | {{ range .Translations }} {{ with .Language.LanguageName }}{{ . }}{{ else }}{{ .Lang }}{{ end }} | {{- end }}