clean up unfurler meta html template

This commit is contained in:
Mononaut 2023-03-08 01:36:50 -06:00
parent 626b395ab7
commit 7953909f1c
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -178,28 +178,29 @@ class Server {
ogTitle = `${this.network ? capitalize(this.network) + ' ' : ''}${matchedRoute.networkMode !== 'mainnet' ? capitalize(matchedRoute.networkMode) + ' ' : ''}${matchedRoute.title}`; ogTitle = `${this.network ? capitalize(this.network) + ' ' : ''}${matchedRoute.networkMode !== 'mainnet' ? capitalize(matchedRoute.networkMode) + ' ' : ''}${matchedRoute.title}`;
} }
res.send(` res.send(
<!doctype html> `<!doctype html>
<html lang="en-US" dir="ltr"> <html lang="en-US" dir="ltr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>${ogTitle}</title> <title>${ogTitle}</title>
<meta name="description" content="The Mempool Open Source Project™ - Explore the full Bitcoin ecosystem with mempool.space™"/> <meta name="description" content="The Mempool Open Source Project™ - Explore the full Bitcoin ecosystem with mempool.space™"/>
<meta property="og:image" content="${ogImageUrl}"/> <meta property="og:image" content="${ogImageUrl}"/>
<meta property="og:image:type" content="image/png"/> <meta property="og:image:type" content="image/png"/>
<meta property="og:image:width" content="${matchedRoute.render ? 1200 : 1000}"/> <meta property="og:image:width" content="${matchedRoute.render ? 1200 : 1000}"/>
<meta property="og:image:height" content="${matchedRoute.render ? 600 : 500}"/> <meta property="og:image:height" content="${matchedRoute.render ? 600 : 500}"/>
<meta property="og:title" content="${ogTitle}"> <meta property="og:title" content="${ogTitle}">
<meta property="twitter:card" content="summary_large_image"> <meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="@mempool"> <meta property="twitter:site" content="@mempool">
<meta property="twitter:creator" content="@mempool"> <meta property="twitter:creator" content="@mempool">
<meta property="twitter:title" content="${ogTitle}"> <meta property="twitter:title" content="${ogTitle}">
<meta property="twitter:description" content="Explore the full Bitcoin ecosystem with mempool.space"/> <meta property="twitter:description" content="Explore the full Bitcoin ecosystem with mempool.space"/>
<meta property="twitter:image:src" content="${ogImageUrl}"/> <meta property="twitter:image:src" content="${ogImageUrl}"/>
<meta property="twitter:domain" content="mempool.space"> <meta property="twitter:domain" content="mempool.space">
<body></body> </head>
</html> <body></body>
`); </html>`
);
} }
} }