From 69b2a1599bbb7b87151ebf0023cceef6e6c5960b Mon Sep 17 00:00:00 2001 From: Index Date: Fri, 28 Jun 2024 11:48:59 -0500 Subject: [PATCH] minor: add support for multiple links in event items store category --- js/store/store.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/js/store/store.js b/js/store/store.js index 83f6fea..9c40f9f 100755 --- a/js/store/store.js +++ b/js/store/store.js @@ -177,16 +177,21 @@ function EventItems() {
${x.date}
${x.name}
- ${x.link !== undefined ? ` + ${x.link !== undefined ? typeof(x.link) !== "object" ? `
${x.link.startsWith('https://polytoria.com/places/') ? 'Event Place' : 'Blog Post'}
- ` - : '' - } + ` : x.link.map(l => ` +
+ + ${l.label} + + +
+ `).join('') : ''}