mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-18 12:13:42 +00:00
fix(talk): all_day option not working in list and compact views
Fix #940
This commit is contained in:
1 parent
e1bcd74ea2
commit
cbeca239dc
2 files changed
+8
-8
No files matched your search
@@ -48,10 +48,10 @@
|
|||||||
{{ $date := $item.Params.time_start | default $item.Date }}
|
{{ $date := $item.Params.time_start | default $item.Date }}
|
||||||
{{ (time $date).Format $.Site.Params.date_format }}
|
{{ (time $date).Format $.Site.Params.date_format }}
|
||||||
{{ if not $item.Params.all_day }}
|
{{ if not $item.Params.all_day }}
|
||||||
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
||||||
{{ end }}
|
{{ with .Params.time_end }}
|
||||||
{{ with .Params.time_end }}
|
— {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
||||||
— {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ with $item.Params.location }}
|
{{ with $item.Params.location }}
|
||||||
|
|||||||
@@ -28,10 +28,10 @@
|
|||||||
{{ $date := $item.Params.time_start | default $item.Date }}
|
{{ $date := $item.Params.time_start | default $item.Date }}
|
||||||
{{ (time $date).Format $.Site.Params.date_format }}
|
{{ (time $date).Format $.Site.Params.date_format }}
|
||||||
{{ if not $item.Params.all_day }}
|
{{ if not $item.Params.all_day }}
|
||||||
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
{{ (time $date).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
||||||
{{ end }}
|
{{ with .Params.time_end }}
|
||||||
{{ with .Params.time_end }}
|
— {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
||||||
— {{ (time .).Format ($.Site.Params.time_format | default "3:04 PM") }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ with $item.Params.location }}
|
{{ with $item.Params.location }}
|
||||||
|
|||||||
Reference in new issue
Block a user