Переглянути джерело

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

Fix #940
George Cushen 6 роки тому
батько
коміт
cbeca239dc
2 змінених файлів з 8 додано та 8 видалено
  1. 4 4
      layouts/partials/li_compact.html
  2. 4 4
      layouts/partials/li_list.html

+ 4 - 4
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 }}
         </span>
         {{ with $item.Params.location }}

+ 4 - 4
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 }}
-      &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 }}