Skip to content

Commit

Permalink
Check events visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobucchi committed Feb 16, 2024
1 parent faac4df commit 791cf53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
16 changes: 4 additions & 12 deletions _data/events.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
- name: "ServerSide.swift Conference"
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."
date: 2023-04-29 18:00:00
link: "https://www.apple.com"
- name: "ServerSide.swift Conference"
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."
date: 2023-04-29 18:00:00
link: "https://www.apple.com"
- name: "ServerSide.swift Conference"
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."
date: 2023-04-29 18:00:00
link: "https://www.apple.com"
# - name: "Conference name"
# description: "Conference description"
# date: 2024-04-29 18:00:00
# link: "https://www.apple.com"
7 changes: 4 additions & 3 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ atom: true

## Community

<ul class="community {% unless site.data.events.size > 0 %}connect-only{% endunless %}" markdown="1">
{% assign events = site.data.events | where_exp:"event", "event.date > site.time" %}
<ul class="community {% unless events.size > 0 %}connect-only{% endunless %}" markdown="1">
<li>
<h3>Connect</h3>
<p>Stay up-to-date with the latest in the Swift community.</p>
Expand All @@ -113,12 +114,12 @@ atom: true
</ul>
</div>
</li>
{% if site.data.events.size > 0 %}
{% if events.size > 0 %}
<li>
<h3>Events</h3>
<p>Check the upcoming Swift related events.</p>
<ul class="event-list">
{% for event in site.data.events %}
{%- for event in events %}
<li>
<h4>
<a href="#">{{ event.name }}</a>
Expand Down

0 comments on commit 791cf53

Please sign in to comment.