From 0d2e79963921154bfe28e9e8d802c00f017f6082 Mon Sep 17 00:00:00 2001 From: Neil Parikh Date: Sun, 12 Sep 2021 00:13:40 -0400 Subject: [PATCH] test --- components/EventDescriptionCard.tsx | 4 +++- content/events/2021/fall/BOT.md | 1 + types.d.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/EventDescriptionCard.tsx b/components/EventDescriptionCard.tsx index 86c9b3db..deb6a558 100644 --- a/components/EventDescriptionCard.tsx +++ b/components/EventDescriptionCard.tsx @@ -15,6 +15,7 @@ interface Props { date: Date; poster?: string; registerLink?: string; + permaLink?: string; } /** @@ -35,6 +36,7 @@ export function EventDescriptionCard({ date, online, registerLink, + permaLink, }: Props) { const Icon = getIcon(location); @@ -43,7 +45,7 @@ export function EventDescriptionCard({ {poster && {name}}
-

{name}

+

{permaLink ? name : name}

diff --git a/content/events/2021/fall/BOT.md b/content/events/2021/fall/BOT.md index 469b0d4f..67a142cc 100644 --- a/content/events/2021/fall/BOT.md +++ b/content/events/2021/fall/BOT.md @@ -6,6 +6,7 @@ online: true location: 'Twitch' poster: 'images/events/2021/fall/BOT.png' registerLink: https://bit.ly/csc-bot-event-signup-form +permaLink: /events/2021/fall/BOT/ --- Kick off the fall term with CS Club’s BOT event! 🍂 Interested in attending upcoming CSC events? Want to meet others in the CS community? diff --git a/types.d.ts b/types.d.ts index 9868d525..4a905069 100644 --- a/types.d.ts +++ b/types.d.ts @@ -12,6 +12,7 @@ declare module "*.event.mdx" { location: string; poster?: string; registerLink?: string; + permaLink?: string; } const ReactComponent: ComponentType;