use https://github.com/calendso/og-image to show dynamic og-image of booking links with avatar and title of booking.
This commit is contained in:
		
							parent
							
								
									0c8d2c74de
								
							
						
					
					
						commit
						a3b4cbeadd
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		|  | @ -20,6 +20,8 @@ export default function User(props) { | |||
|             <Head> | ||||
|                 <title>{props.user.name || props.user.username} | Calendso</title> | ||||
|                 <link rel="icon" href="/favicon.ico" /> | ||||
|                 <meta property="og:image" content={"https://og-image-inctrrupl-calend-so.vercel.app/" + encodeURIComponent("Book **" + (props.user.name || props.user.username) + "**") + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> | ||||
|                 <meta property="og:title" content={"Book " + (props.user.name || props.user.username) + " via Calendso"}/> | ||||
|             </Head> | ||||
| 
 | ||||
|             <main className="max-w-2xl mx-auto my-24"> | ||||
|  | @ -89,4 +91,4 @@ export function getRandomColorCode() { | |||
|         color += Math.floor(Math.random() * 10); | ||||
|     } | ||||
|     return color; | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -96,6 +96,9 @@ export default function Type(props) { | |||
|           Calendso | ||||
|         </title> | ||||
|         <link rel="icon" href="/favicon.ico" /> | ||||
|         <meta property="og:image" content={"https://og-image-inctrrupl-calend-so.vercel.app/" + encodeURIComponent("Book **" + (props.user.name || props.user.username) + "** <br>" + props.eventType.description) + ".png?md=1&images=https%3A%2F%2Fcalendso.com%2Fcalendso-logo-white.svg&images=" + encodeURIComponent(props.user.avatar)} /> | ||||
|         <meta property="og:title" content={"Book " + (props.user.name || props.user.username)  + " via Calendso"}/> | ||||
|         <meta property="og:description" content={props.eventType.description}/> | ||||
|       </Head> | ||||
|       <main | ||||
|         className={ | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Malte Delfs
						Malte Delfs