Skip to content

Commit 791cf53

Browse files
Check events visibility
1 parent faac4df commit 791cf53

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

_data/events.yaml

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
- name: "ServerSide.swift Conference"
2-
description: "ServerSide.swift is a framework independent conference, where we will learn and share on a number of different related topics. The conference is aimed at being a non profit conference and solely run for the love of server side Swift."
3-
date: 2023-04-29 18:00:00
4-
link: "https://www.apple.com"
5-
- name: "ServerSide.swift Conference"
6-
description: "ServerSide.swift is a framework independent conference, where we will learn and share on a number of different related topics. The conference is aimed at being a non profit conference and solely run for the love of server side Swift."
7-
date: 2023-04-29 18:00:00
8-
link: "https://www.apple.com"
9-
- name: "ServerSide.swift Conference"
10-
description: "ServerSide.swift is a framework independent conference, where we will learn and share on a number of different related topics. The conference is aimed at being a non profit conference and solely run for the love of server side Swift."
11-
date: 2023-04-29 18:00:00
12-
link: "https://www.apple.com"
1+
# - name: "Conference name"
2+
# description: "Conference description"
3+
# date: 2024-04-29 18:00:00
4+
# link: "https://www.apple.com"

index.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ atom: true
8989

9090
## Community
9191

92-
<ul class="community {% unless site.data.events.size > 0 %}connect-only{% endunless %}" markdown="1">
92+
{% assign events = site.data.events | where_exp:"event", "event.date > site.time" %}
93+
<ul class="community {% unless events.size > 0 %}connect-only{% endunless %}" markdown="1">
9394
<li>
9495
<h3>Connect</h3>
9596
<p>Stay up-to-date with the latest in the Swift community.</p>
@@ -113,12 +114,12 @@ atom: true
113114
</ul>
114115
</div>
115116
</li>
116-
{% if site.data.events.size > 0 %}
117+
{% if events.size > 0 %}
117118
<li>
118119
<h3>Events</h3>
119120
<p>Check the upcoming Swift related events.</p>
120121
<ul class="event-list">
121-
{% for event in site.data.events %}
122+
{%- for event in events %}
122123
<li>
123124
<h4>
124125
<a href="#">{{ event.name }}</a>

0 commit comments

Comments
 (0)