File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Layout from '../containers/layout'
4
4
import Panel , { LargeParagraph } from '../components/Panel'
5
5
import City , { Cities } from '../components/City'
6
6
7
- import { isFuture , parse } from 'date-fns'
7
+ import { isFuture , isToday , parse } from 'date-fns'
8
8
import { graphql } from 'gatsby'
9
9
10
10
const IndexPage = ( { data : { allEvent } } ) => {
@@ -13,8 +13,12 @@ const IndexPage = ({ data: { allEvent } }) => {
13
13
( a , b ) => getDate ( a . node . info . date ) - getDate ( b . node . info . date )
14
14
)
15
15
16
- const futureMeetups = sortedCities . filter ( city => isFuture ( city . node . info . date ) )
17
- const pastMeetups = sortedCities . filter ( city => ! isFuture ( city . node . info . date ) )
16
+ const futureMeetups = sortedCities . filter (
17
+ city => isFuture ( city . node . info . date ) || isToday ( city . node . info . date )
18
+ )
19
+ const pastMeetups = sortedCities . filter (
20
+ city => ! isFuture ( city . node . info . date ) && ! isToday ( city . node . info . date )
21
+ )
18
22
19
23
return (
20
24
< Layout >
You can’t perform that action at this time.
0 commit comments