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

Commit ddd110a

Browse files
Merge pull request #657 from devopsdays/fix-enddate
Attempt to fix enddate coming too soon
2 parents 3dab4fc + 75043ef commit ddd110a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<div class="row">
77
{{- range sort $.Site.Data.events "startdate" -}}
88
{{- if .startdate -}}
9-
{{- if ge (time .enddate) now -}}
9+
<!-- Subtracting a day is a patch for https://github.com/devopsdays/devopsdays-theme/issues/656 -->
10+
{{- if ge (time .enddate) (now.AddDate 0 0 -1) -}}
1011
{{- $.Scratch.Set "city" .city -}}
1112
{{- $.Scratch.Set "year" .year -}}
1213
{{- $.Scratch.Set "logo" "unset" -}}

0 commit comments

Comments
 (0)