elli-website/themes/elli/layouts/partials/date.html

14 lines
457 B
HTML
Raw Permalink Normal View History

2023-08-16 13:32:12 +02:00
{{ if or (eq "de" .language.Lang) (eq "fr" .language.Lang) }}
{{ if eq "long" .format }}
{{ .date.Format "02" }}. {{ i18n (.date.Format "January")}} {{ .date.Format "2006"}}
{{ else }}
{{ .date.Format "02" }}. {{ substr (i18n (.date.Format "January")) 0 3 }} {{ .date.Format "06"}}
{{ end }}
{{ else }}
{{ if eq "long" .format }}
{{ .date.Format "January 2, 2006" }}
{{ else }}
{{ .date.Format "Jan 2, 06" }}
{{ end }}
{{ end }}