Skip to content

Commit a712c06

Browse files
committed
Extend events loop to online events
1 parent bf7bbff commit a712c06

3 files changed

+46
-7
lines changed

_includes/events.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,23 @@ <h2>Calendario eventi CoderDojo</h2>
7272
</tr>
7373
</thead>
7474
<tbody>
75-
<tr>
76-
<td>31/10/2020 15:00</td>
77-
<td><a href="https://www.eventbrite.it/e/biglietti-coderdojo-milano-2020-tutti-a-bordo-126724926667">ONBOARDING</a></td>
78-
</tr>
79-
8075
{% for event in site.categories.event_planned reversed%}
8176
<tr date="{{event.date}}" style="display: none;">
8277
<td>{{ event.date | date: "%d/%m/%Y %H:%M" }}</td>
83-
<td><a href="{{ event.url | prepend: site.baseurl }}">{{ event.title }}</a><br/><span>{%for location in site.event_locations%}{%if location.id == event.location%}
84-
{{ location.name }}{%endif%}{%endfor%}</span></td>
78+
<td>
79+
{%if event.categories contains "onboarding" %}
80+
<a href="{{ event.registration_url }}">{{ event.title }}</a>
81+
{% else %}
82+
<a href="{{ event.url | prepend: site.baseurl }}">{{ event.title }}</a>
83+
{% endif %}
84+
<br/>
85+
<span>{%for location in site.event_locations%}
86+
{%if location.id == event.location%}{{ location.name }}{%endif%}{%endfor%}
87+
{%if event.type == "online" %}
88+
Online
89+
{% endif %}
90+
</span>
91+
</td>
8592
</tr>
8693
{% endfor %}
8794
</tbody>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
author: admin
3+
comments: false
4+
date: 2020-10-24 15:00:00+02:00
5+
layout: event
6+
location: online
7+
registration_url: https://www.eventbrite.it/e/biglietti-coderdojo-milano-2020-were-back-126368701187
8+
type: online
9+
slug: coderdojo-onboarding-24-ott-2020
10+
title: Evento di "ONBOARDING" per attività CoderDojo Milano virtuali rivolto prevalentemente ai genitori
11+
img: event_03.jpg
12+
thumb: event_03.jpg
13+
categories:
14+
- event_planned
15+
- onboarding
16+
---
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
author: admin
3+
comments: false
4+
date: 2020-10-31 15:00:00+01:00
5+
layout: event
6+
location: online
7+
registration_url: https://www.eventbrite.it/e/biglietti-coderdojo-milano-2020-tutti-a-bordo-126724926667
8+
type: online
9+
slug: coderdojo-onboarding-31-ott-2020
10+
title: Evento di "ONBOARDING" per attività CoderDojo Milano virtuali rivolto prevalentemente ai genitori
11+
img: event_03.jpg
12+
thumb: event_03.jpg
13+
categories:
14+
- event_planned
15+
- onboarding
16+
---

0 commit comments

Comments
 (0)