BareGit

Add Open Graph tags. Adjust style

Author: MetroWind <chris.corsair@gmail.com>
Date: Thu Sep 24 20:21:11 2026 -0700
Commit: 286b2339a15fe8851306f088facad2fd37e58e48

Changes

diff --git a/src/game_http_server.cpp b/src/game_http_server.cpp
index 4e961c6..094b2ae 100644
--- a/src/game_http_server.cpp
+++ b/src/game_http_server.cpp
@@ -769,6 +769,8 @@ std::string GameHttpServer::recentPage()
             + depthText(record.last_depth) + "</td></tr>";
     }
     std::string html(asset->content);
+    replaceTemplateValue(html, "{{PUBLIC_URL}}",
+                         htmlEscape(manager_.publicBaseUrl()));
     replaceTemplateValue(html, "{{MCP_URL}}",
                          htmlEscape(manager_.publicBaseUrl() + "mcp"));
     replaceTemplateValue(
diff --git a/web/home.css b/web/home.css
index 7f093cc..5e0033e 100644
--- a/web/home.css
+++ b/web/home.css
@@ -165,7 +165,7 @@ h1
     margin: 0 0 36px;
     font-size: min(5rem, 10vw);
     font-weight: bold;
-    letter-spacing: -.065em;
+    letter-spacing: -.03em;
     line-height: 1.2;
 }
 
diff --git a/web/home.html b/web/home.html
index bbddc63..ce5de38 100644
--- a/web/home.html
+++ b/web/home.html
@@ -5,6 +5,15 @@
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <meta name="theme-color" content="#0b1210">
   <title>NetHack MCP — send your agent into the dungeon</title>
+  <meta name="description"
+        content="Let your AI agent take on NetHack. Copy the prompt, then watch its game through the spectator link it shares.">
+  <meta property="og:type" content="website">
+  <meta property="og:site_name" content="NetHack MCP">
+  <meta property="og:title"
+        content="NetHack MCP — send your agent into the dungeon">
+  <meta property="og:description"
+        content="Let your AI agent take on NetHack. Copy the prompt, then watch its game through the spectator link it shares.">
+  <meta property="og:url" content="{{PUBLIC_URL}}">
   <link rel="stylesheet" href="/home.css">
 </head>
 <body>