From 09cb5365d1caab3cb96ad3b3d04a38852cb3907e Mon Sep 17 00:00:00 2001 From: tree Date: Sat, 2 Mar 2024 19:01:34 +0100 Subject: [PATCH] events: add number --- src/components/EventItem.astro | 17 ++++++++++++----- src/pages/event/[id].astro | 4 +++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/EventItem.astro b/src/components/EventItem.astro index 1e6539f..4977406 100644 --- a/src/components/EventItem.astro +++ b/src/components/EventItem.astro @@ -22,9 +22,13 @@ const status = eventStatus(item)
{nameRenderer(item)} + {item.issue && + #{item.issue} + }
{item.type === "hackathon" && HACKATHON} {item.type === "summit" && SUMMIT} + {item.type === "online-summit" && ONLINE} {item.type === "privacy-corner" && ↴ PC} {item.tags && item.tags.includes("sfe") && SFE} @@ -42,7 +46,7 @@ const status = eventStatus(item) } {item.type === 'online-summit' && -
Online
+
Global
}
@@ -84,18 +88,21 @@ const status = eventStatus(item)
Date: {dateFormat(item.date)} {item.days ? ' - ' + dateFormat(dateEnd(item.date, item.days)) + ` (${item.days} days)` : ''}
- Venue: {item.place && || "TBD"} + {item.type !== 'online-summit' && +
Venue: {item.place && || "TBD"}
+ } {item.place && item['place-address'] && @ {item['place-address']} }
Status: {status.title}
-
Lead: {item.lead || 'n/a'}
+ -
+
+ {item.links?.rsvp && - + } {item.links?.web && diff --git a/src/pages/event/[id].astro b/src/pages/event/[id].astro index bed49ab..bbfff90 100644 --- a/src/pages/event/[id].astro +++ b/src/pages/event/[id].astro @@ -48,7 +48,9 @@ const ext = findExt(EventsExt, item)
Date: {dateFormat(item.date)} {item.days ? ' - ' + dateFormat(dateEnd(item.date, item.days)) + ` (${item.days} days)` : ''}
- Venue: {item.place && || "TBD"} + {item.type !== 'online-summit' && +
Venue: {item.place && || "TBD"}
+ } {item.place && item['place-address'] && @ {item['place-address']}