mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-08 12:14:31 +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 }}
|
||||
{{ (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 }}
|
||||
|
||||
@@ -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 }}
|
||||
</span>
|
||||
{{ with $item.Params.location }}
|
||||
|
||||
Reference in new issue
Block a user