|
@@ -2,7 +2,7 @@
|
|
|
{{ $t1 := time .Date }}{{/* Start datetime. */}}
|
|
|
{{ $str := slice (time.Format site.Params.locale.date_format (time $t1)) }}{{/* Init return string with start date. */}}
|
|
|
{{/* Show start time if not all day event. */}}
|
|
|
-{{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.time_format (time $t1)) }}{{ end }}
|
|
|
+{{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.locale.time_format (time $t1)) }}{{ end }}
|
|
|
{{/* Show event end date if provided. */}}
|
|
|
{{ if .Params.date_end }}
|
|
|
{{ $str = $str | append "—" }}
|
|
@@ -12,6 +12,6 @@
|
|
|
{{ $str = $str | append (time.Format site.Params.locale.date_format (time $t2)) }}
|
|
|
{{ end }}
|
|
|
{{/* Show end time if not all day event. */}}
|
|
|
- {{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.time_format (time $t2)) }}{{ end }}
|
|
|
+ {{ if not .Params.all_day }}{{ $str = $str | append (time.Format site.Params.locale.time_format (time $t2)) }}{{ end }}
|
|
|
{{ end }}
|
|
|
{{ return (delimit $str " ") }}
|