Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide cancelled events #28

Merged
merged 2 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions _events/2023-12-15-draft.markdown
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
type: draft
type: cancelled
date: 2023-12-15 19:00:00
title: "Lost Caverns of Ixalan Draft / Commander"
title: "Ausfall"
location: Rathauskeller
---

Bitte über [WhatsApp-Gruppe](https://chat.whatsapp.com/HQ7IINFrZB63esDNRqsIUw) anmelden, damit der Event stattfinden kann.
2 changes: 1 addition & 1 deletion index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Anmeldungen über unsere [WhatsApp-Gruppe](https://chat.whatsapp.com/HQ7IINFrZB6

---

{% assign upcoming_events = site.events | where_exp: "item", "item.date > site.time" %}
{% assign upcoming_events = site.events | where_exp: "item", "item.date > site.time" | where_exp: "item", "item.type != 'cancelled'" %}
{% assign next_event = upcoming_events | first %}

## Nächster Event
Expand Down
4 changes: 2 additions & 2 deletions past-events.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Vergangene Events
permalink: /vergangene-events/
---

{% assign upcoming_events = site.events | where_exp: "item", "item.date < site.time" %}
{% for event in upcoming_events %}
{% assign past_events = site.events | where_exp: "item", "item.date < site.time" | where_exp: "item", "item.type != 'cancelled'" %}
{% for event in past_events %}

<article>
<p>
Expand Down