Add venue address to calendar files
This commit is contained in:
+3
-2
@@ -733,6 +733,7 @@
|
|||||||
const timeMatch = timeText?.match(/^(\d{1,2}):(\d{2})/);
|
const timeMatch = timeText?.match(/^(\d{1,2}):(\d{2})/);
|
||||||
const isWineEvent = card.classList.contains('wine-event');
|
const isWineEvent = card.classList.contains('wine-event');
|
||||||
const title = isWineEvent ? 'Weinreise bei Frida & Fred' : 'Käsetasting bei Frida & Fred';
|
const title = isWineEvent ? 'Weinreise bei Frida & Fred' : 'Käsetasting bei Frida & Fred';
|
||||||
|
const eventAddress = 'Untere Bachgasse 3, 93047 Regensburg';
|
||||||
const slug = `${isWineEvent ? 'weinreise' : 'kaesetasting'}-${date}`;
|
const slug = `${isWineEvent ? 'weinreise' : 'kaesetasting'}-${date}`;
|
||||||
const calendarLink = document.createElement('a');
|
const calendarLink = document.createElement('a');
|
||||||
calendarLink.className = 'calendar-link';
|
calendarLink.className = 'calendar-link';
|
||||||
@@ -771,8 +772,8 @@
|
|||||||
`DTSTAMP:${formatIcsUtcDateTime(new Date())}Z`,
|
`DTSTAMP:${formatIcsUtcDateTime(new Date())}Z`,
|
||||||
...calendarContent,
|
...calendarContent,
|
||||||
`SUMMARY:${escapeIcsText(title)}`,
|
`SUMMARY:${escapeIcsText(title)}`,
|
||||||
'LOCATION:Frida & Fred',
|
`LOCATION:${escapeIcsText(eventAddress)}`,
|
||||||
`DESCRIPTION:${escapeIcsText('Anmeldung: info@frida-fred.com oder 0151 19426530')}`,
|
`DESCRIPTION:${escapeIcsText(`Adresse: ${eventAddress}\nAnmeldung: info@frida-fred.com oder 0151 19426530`)}`,
|
||||||
'END:VEVENT',
|
'END:VEVENT',
|
||||||
'END:VCALENDAR'
|
'END:VCALENDAR'
|
||||||
].join('\r\n');
|
].join('\r\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user