Use the URL property

This commit is contained in:
Aditya Thakral 2021-09-20 19:52:28 -04:00
parent 2da8ab1339
commit 733e034cc6
2 changed files with 1871 additions and 1632 deletions

File diff suppressed because it is too large Load Diff

View File

@ -21,17 +21,18 @@ export async function generateCalendar() {
.replaceAll(":", "")
.replaceAll(".", "")}@csclub.uwaterloo.ca`,
summary: metadata.name,
description: `${metadata.short} --- Learn more at ${path.join(
"https://csclub.uwaterloo.ca",
process.env.NEXT_PUBLIC_BASE_PATH ?? "/",
metadata.permaLink
)}`,
description: metadata.short,
start: new Date(metadata.date),
end: addHours(new Date(metadata.date), 1),
location: metadata.online
? metadata.location
: `University of Waterloo - ${metadata.location}`,
organizer: "exec@csclub.uwaterloo.ca",
url: path.join(
"https://csclub.uwaterloo.ca",
process.env.NEXT_PUBLIC_BASE_PATH ?? "/",
metadata.permaLink
),
})),
});