fix(talk): all_day option not working in list and compact views

Fix #940
This commit is contained in:
George Cushen committed 2019-02-17 20:28:00 +00:00
1 parent e1bcd74ea2
commit cbeca239dc
2 files changed
+8 -8

No files matched your search

+4 -4
View File
@@ -48,10 +48,10 @@
{{ $date := $item.Params.time_start | default $item.Date }}
{{ (time $date).Format $.Site.Params.date_format }}
{{ if not $item.Params.all_day }}
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ end }}
{{ with .Params.time_end }}
— {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ with .Params.time_end }}
— {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ end }}
{{ end }}
</span>
{{ with $item.Params.location }}
+4 -4
View File
@@ -28,10 +28,10 @@
{{ $date := $item.Params.time_start | default $item.Date }}
{{ (time $date).Format $.Site.Params.date_format }}
{{ if not $item.Params.all_day }}
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ end }}
{{ with .Params.time_end }}
&mdash; {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ with .Params.time_end }}
&mdash; {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
{{ end }}
{{ end }}
</span>
{{ with $item.Params.location }}