Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Commit 4805145

Browse files
Attempt to fix enddate coming too soon
1 parent 03029d7 commit 4805145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="row">
77
{{- range sort $.Site.Data.events "startdate" -}}
88
{{- if .startdate -}}
9-
{{- if ge (time .enddate) now -}}
9+
{{- if ge (time .enddate) (now.AddDate 0 0 -1) -}}
1010
{{- $.Scratch.Set "city" .city -}}
1111
{{- $.Scratch.Set "year" .year -}}
1212
{{- $.Scratch.Set "logo" "unset" -}}

0 commit comments

Comments
 (0)