{#await pages.result}
diff --git a/src/routes/_og/[...path]/+server.ts b/src/routes/_og/[...path]/+server.ts
new file mode 100644
index 0000000..bc3eb04
--- /dev/null
+++ b/src/routes/_og/[...path]/+server.ts
@@ -0,0 +1,18 @@
+import { error } from '@sveltejs/kit';
+import { resolveOgTarget } from '$lib/server/og/target';
+import { loadOgView } from '$lib/server/og/view';
+import { pageCard } from '$lib/server/og/card';
+import { renderOg } from '$lib/server/og/render';
+import type { RequestHandler } from './$types';
+
+// Cards with stats keep for an hour, bare ones retry soon in case the cache has warmed
+const CACHE_FULL = 'public, max-age=3600, s-maxage=3600';
+const CACHE_BARE = 'public, max-age=300, s-maxage=300';
+
+// Share card for any dashboard page, at /_og/
.png
+export const GET: RequestHandler = async ({ params }) => {
+ const target = params.path.endsWith('.png') ? resolveOgTarget(params.path.slice(0, -4)) : null;
+ if (!target) error(404, 'No share card for that page');
+ const { view, cached } = await loadOgView(target);
+ return renderOg(pageCard(view), cached ? CACHE_FULL : CACHE_BARE);
+};
diff --git a/src/routes/og.png/+server.ts b/src/routes/og.png/+server.ts
new file mode 100644
index 0000000..709ac62
--- /dev/null
+++ b/src/routes/og.png/+server.ts
@@ -0,0 +1,8 @@
+import { defaultCard } from '$lib/server/og/card';
+import { renderOg } from '$lib/server/og/render';
+import type { RequestHandler } from './$types';
+
+export const prerender = true;
+
+// Site-wide share card, baked to a static file at build time
+export const GET: RequestHandler = () => renderOg(defaultCard(), 'public, max-age=86400');
diff --git a/static/robots.txt b/static/robots.txt
index 513c024..ae5abcc 100644
--- a/static/robots.txt
+++ b/static/robots.txt
@@ -1,6 +1,19 @@
-# only the homepage is crawlable, the rest sits behind a bot check
+# only the homepage and share cards are crawlable, the rest sits behind a bot check
User-agent: *
Allow: /$
Allow: /_app/
Allow: /logo.svg
+Allow: /og.png
+Allow: /_og/
Disallow: /
+
+# link preview bots read share tags off whatever page someone shared
+User-agent: Twitterbot
+User-agent: facebookexternalhit
+User-agent: LinkedInBot
+User-agent: Slackbot
+User-agent: Discordbot
+User-agent: TelegramBot
+User-agent: WhatsApp
+Disallow: /api/
+Allow: /