Skip to content

Commit 1d40a44

Browse files
Check events visibility
1 parent c40aa7d commit 1d40a44

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
@@ -91,7 +91,8 @@ atom: true
9191

9292
## Community
9393

94-
<ul class="community {% unless site.data.events.size > 0 %}connect-only{% endunless %}" markdown="1">
94+
{% assign events = site.data.events | where_exp:"event", "event.date > site.time" %}
95+
<ul class="community {% unless events.size > 0 %}connect-only{% endunless %}" markdown="1">
9596
<li>
9697
<h3>Connect</h3>
9798
<p>Stay up-to-date with the latest in the Swift community.</p>
@@ -115,12 +116,12 @@ atom: true
115116
</ul>
116117
</div>
117118
</li>
118-
{% if site.data.events.size > 0 %}
119+
{% if events.size > 0 %}
119120
<li>
120121
<h3>Events</h3>
121122
<p>Check the upcoming Swift related events.</p>
122123
<ul class="event-list">
123-
{% for event in site.data.events %}
124+
{%- for event in events %}
124125
<li>
125126
<h4>
126127
<a href="#">{{ event.name }}</a>

0 commit comments

Comments
 (0)