Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion docs/src/components/Seo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,29 @@ interface Props {

const { title, description } = Astro.props;
const canonical = new URL(Astro.url.pathname, Astro.site);
// Social crawlers reject relative image paths, so send an absolute URL.
const image = new URL("/og.png", Astro.site);
const imageAlt =
"The wrec wordmark on a red field, above the words: the efficient, agent-native screen recorder for macos.";
---

<meta name="description" content={description} />
<link rel="canonical" href={canonical} />
<meta name="robots" content="index, follow, max-image-preview:large" />
<meta name="theme-color" content="#c62828" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="wrec" />
<meta property="og:locale" content="en_US" />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:url" content={canonical} />
<meta name="twitter:card" content="summary" />
<meta property="og:image" content={image} />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content={imageAlt} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
<meta name="twitter:image:alt" content={imageAlt} />
Loading