commit 3a6764981ecb75901cfbf2d119e7deaa563bbd87 equwal <truex@equwal.com> 2026-09-22 17:23:30 -0700 Add a preview image for link previews
pages.html | 3 ++- server_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pages.html b/pages.html index 5d69f22..4f83bd2 100644 --- a/pages.html +++ b/pages.html @@ -9,7 +9,8 @@ <meta property="og:site_name" content="sbm Sync"> <meta property="og:title" content="{{if .Title}}{{.Title}} ยท {{end}}sbm Sync"> <meta property="og:description" content="Sync your sbm bookmarks between the terminal, the browser add-on and Android."> -<meta name="twitter:card" content="summary"> +<meta property="og:image" content="https://sbm.subread.space/og.png"> +<meta name="twitter:card" content="summary_large_image"> <meta name="theme-color" content="#005577"> <style> body { max-width: 36em; margin: 2em auto; padding: 0 1em; font: 16px/1.5 sans-serif; color: #222; background: #fff; } diff --git a/server_test.go b/server_test.go index 8f50473..50cda29 100644 --- a/server_test.go +++ b/server_test.go @@ -506,7 +506,7 @@ func TestPaymentLinks(t *testing.T) { } // The link for large teams needs the link for small teams. e.s.teamsLarge = "https://buy.stripe.com/large" - if strings.Contains(e.body(c, "/"), "large") { + if strings.Contains(e.body(c, "/"), e.s.teamsLarge) { t.Error("the home page links only to large teams") } e.s.teams, e.s.support = "https://buy.stripe.com/small", "https://buy.stripe.com/support"