{{ define "main" }} {{ .Title }} {{- with .Params.author }} {{- $names := slice }} {{- range . }}{{ $names = $names | append .name }}{{ end }} {{ i18n "published_by" }}: {{ delimit $names ", " (printf " %s " (i18n "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 }} {{ $langs := slice }} {{ range .Translations }}{{ $langs = $langs | append (printf "%s" .Permalink (cond (ne .Language.LanguageName nil) .Language.LanguageName .Lang)) }}{{ end }} {{ i18n "available_translations" }}: {{ delimit $langs "," (printf " %s " (i18n "and")) }} {{- end }}
{{ i18n "published_by" }}: {{ delimit $names ", " (printf " %s " (i18n "and")) }}
{{ i18n "published_on" }}: {{ .Date.Format "2006-01-02" }}
{{ i18n "updated_on" }}: {{ .Lastmod.Format "2006-01-02" }}
{{ i18n "available_translations" }}: {{ delimit $langs "," (printf " %s " (i18n "and")) }}