Merge pull request #300 from Malte-D/feature/og-image
Added og-image to booking pagespull/301/head^2
commit
c428c3f80e
|
@ -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-one-pi.vercel.app/" + encodeURIComponent("Book **" + (props.user.name || props.user.username) + "**").replace(/'/g, "%27") + ".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">
|
||||
|
|
|
@ -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-one-pi.vercel.app/" + encodeURIComponent("Book **" + (props.user.name || props.user.username) + "** <br>" + props.eventType.description).replace(/'/g, "%27") + ".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 New Issue