From a3b4cbeadd20146ed372d58923d00565d52d4696 Mon Sep 17 00:00:00 2001 From: Malte Delfs Date: Tue, 22 Jun 2021 17:52:52 +0200 Subject: [PATCH] use https://github.com/calendso/og-image to show dynamic og-image of booking links with avatar and title of booking. --- pages/[user].tsx | 4 +++- pages/[user]/[type].tsx | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/[user].tsx b/pages/[user].tsx index 62499c4f..fb1c3c95 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -20,6 +20,8 @@ export default function User(props) { {props.user.name || props.user.username} | Calendso + +
@@ -89,4 +91,4 @@ export function getRandomColorCode() { color += Math.floor(Math.random() * 10); } return color; -} \ No newline at end of file +} diff --git a/pages/[user]/[type].tsx b/pages/[user]/[type].tsx index 394358eb..b9564612 100644 --- a/pages/[user]/[type].tsx +++ b/pages/[user]/[type].tsx @@ -96,6 +96,9 @@ export default function Type(props) { Calendso + " + props.eventType.description) + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> + +