This repository was archived by the owner on Jul 21, 2019. It is now read-only.
Commit 76cf879
committed
updates CFP OPEN footer to use time comparions
The existing footer takes the current time (build time), casts it to a
string, and compares it with the CFP start/end times which are also
being re-cast to strings here (twice!).
In order to allow us to use timezones as part of our comparison and not
have the formatting involved in comparisons, use the `time` template
function and directly compare against `now` without typecasting.
ref https://gohugo.io/functions/time/
ref https://gohugo.io/functions/now/1 parent 01b2b5b commit 76cf879
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments