parent
6387b4d92a
commit
1cce3ddc89
3 changed files with 9 additions and 4 deletions
|
|
@ -257,6 +257,7 @@ import mainHtml from "../content/pages/events.html?raw";
|
|||
const end = new Date(today.getFullYear() + 1, today.getMonth() + 1, 0);
|
||||
const events = eventsBetween(start, end);
|
||||
const stamp = new Date().toISOString().replace(/[-:]/g, "").replace(/\.\d{3}Z$/, "Z");
|
||||
const siteUrl = "https://familyfed.ie";
|
||||
const lines = [
|
||||
"BEGIN:VCALENDAR",
|
||||
"VERSION:2.0",
|
||||
|
|
@ -275,7 +276,7 @@ import mainHtml from "../content/pages/events.html?raw";
|
|||
`SUMMARY:${escapeIcs(event.title)}`,
|
||||
`DESCRIPTION:${escapeIcs(event.details)}`,
|
||||
`LOCATION:${escapeIcs(event.location)}`,
|
||||
`URL:https://familyfed.bcgen.ie${event.url}`,
|
||||
`URL:${siteUrl}${event.url}`,
|
||||
"END:VEVENT",
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue