@@ -7,6 +7,7 @@ <h1 class="has-text-centered">Events</h1>
77 < p class ="has-text-centered "> Join us for community events that are focused on learning, sharing and networking</ p >
88 < br >
99 < br >
10+ < h3 > Upcoming Events</ h3 >
1011 < table class ="table is-fullwidth ">
1112 < thead >
1213 < th class ="has-text-centered "> Event</ th >
@@ -16,15 +17,51 @@ <h1 class="has-text-centered">Events</h1>
1617 < th class ="has-text-centered "> Description</ th >
1718 </ thead >
1819 < tbody >
19- < p class ="has-text-centered "> This page is being redesigned. < a href ="mailto:info@codeindore.com "> Get in touch with us</ a > for any queries or details that you may have in the meantime.</ p >
2020 {% for event in event_list %}
21+ {% capture currentDate %}
22+ {{ site.time | date: '%F' }}
23+ {% endcapture %}
24+ {%capture eventdate %}
25+ {{ event.event-date | date: '%F' }}
26+ {% endcapture %}
27+ {% if eventdate > = currentDate %}
2128 < tr >
2229 < td class ="has-text-centered "> < a href ="{{ event.event-url }} "> {{ event.title }}</ a > </ td >
2330 < td class ="has-text-centered "> {{ event.type }}</ td >
2431 < td class ="has-text-centered "> {{ event.event-date | date:"%b %d, %Y" }}</ td >
2532 < td class ="has-text-centered "> {{ event.city }}</ td >
2633 < td class ="has-text-centered "> {{ event.description }}</ td >
2734 </ tr >
35+ {% endif %}
36+ {% endfor %}
37+ </ tbody >
38+ </ table >
39+ < h3 > Previous Events</ h3 >
40+ < table class ="table is-fullwidth ">
41+ < thead >
42+ < th class ="has-text-centered "> Event</ th >
43+ < th class ="has-text-centered "> Type</ th >
44+ < th class ="has-text-centered "> Date</ th >
45+ < th class ="has-text-centered "> Location</ th >
46+ < th class ="has-text-centered "> Description</ th >
47+ </ thead >
48+ < tbody >
49+ {% for event in event_list %}
50+ {% capture currentDate %}
51+ {{ site.time | date: '%F' }}
52+ {% endcapture %}
53+ {%capture eventdate %}
54+ {{ event.event-date | date: '%F' }}
55+ {% endcapture %}
56+ {% if eventdate < currentDate %}
57+ < tr >
58+ < td class ="has-text-centered "> < a href ="{{ event.event-url }} "> {{ event.title }}</ a > </ td >
59+ < td class ="has-text-centered "> {{ event.type }}</ td >
60+ < td class ="has-text-centered "> {{ event.event-date | date:"%b %d, %Y" }}</ td >
61+ < td class ="has-text-centered "> {{ event.city }}</ td >
62+ < td class ="has-text-centered "> {{ event.description }}</ td >
63+ </ tr >
64+ {% endif %}
2865 {% endfor %}
2966 </ tbody >
3067</ table >
0 commit comments