Proof-of-concept "sipper" minimal pages for web crawlers

This commit is contained in:
Mononaut
2023-08-24 17:49:27 +09:00
parent c51159d275
commit eeefaa6374
9 changed files with 661 additions and 44 deletions

23
unfurler/views/head.ejs Normal file
View File

@@ -0,0 +1,23 @@
<head>
<meta charset="utf-8">
<title><%= ogTitle %></title>
<link rel="canonical" href="<%= canonical %>" />
<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:type" content="image/png"/>
<meta property="og:image:width" content="<% if (matchedRoute.render) { %>1200<% } else { %>1000<% } %>"/>
<meta property="og:image:height" content="<% if (matchedRoute.render) { %>600<% } else { %>500<% } %>"/>
<meta property="og:title" content="<%= ogTitle %>">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="@mempool">
<meta property="twitter:creator" content="@mempool">
<meta property="twitter:title" content="<%= ogTitle %>">
<meta property="twitter:description" content="Explore the full Bitcoin ecosystem with mempool.space"/>
<meta property="twitter:image:src" content="<%= ogImageUrl %>"/>
<meta property="twitter:domain" content="mempool.space">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body { padding: 0; margin: 0; }
.main { padding: 0 20px; }
</style>
</head>