schuelerzeitung/layouts/partials/date.html

14 lines
457 B
HTML
Raw Normal View History

2023-03-26 15:44:45 +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 }}