From cbeca239dca6a8f7fb0cbeb7ebc23133e2b16129 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 17 Feb 2019 20:28:00 +0000 Subject: [PATCH] fix(talk): all_day option not working in list and compact views Fix #940 --- layouts/partials/li_compact.html | 8 ++++---- layouts/partials/li_list.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/partials/li_compact.html b/layouts/partials/li_compact.html index a466e0b1..eb051fc8 100644 --- a/layouts/partials/li_compact.html +++ b/layouts/partials/li_compact.html @@ -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 }} {{ with $item.Params.location }} diff --git a/layouts/partials/li_list.html b/layouts/partials/li_list.html index 790ba3d2..3ec5bc33 100644 --- a/layouts/partials/li_list.html +++ b/layouts/partials/li_list.html @@ -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 }} - — {{ (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 }} {{ with $item.Params.location }}