Add link preview metadata and map image for the AIS page - #87
Open
bkeepers wants to merge 1 commit into
Open
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
openwaters-api | 6cab1fc | Commit Preview URL Branch Preview URL |
Aug 22 2026, 02:40 AM |
There was a problem hiding this comment.
Pull request overview
Adds richer social link previews for the /ais product page by introducing an optional preview image capability in the shared MainLayout, and then wiring it up on the AIS page.
Changes:
- Update
/aispage title and description to be more descriptive for SEO/link unfurls. - Add an optional
imageprop toMainLayoutand emitog:image/twitter:imagewhen provided. - Set
/aisto use a new preview image at/og/ais.png.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| website/src/pages/ais/index.astro | Updates the AIS page metadata (title/description) and supplies an OG/Twitter preview image path. |
| website/src/layouts/MainLayout.astro | Adds optional image prop and outputs OG/Twitter image meta tags derived from Astro.site. |
Suppressed comments (1)
website/src/layouts/MainLayout.astro:54
content={imageURL}relies on implicit stringification of aURLobject. UsingimageURL.hrefis explicit and avoids any renderer quirks.
{imageURL && <meta property="og:image" content={imageURL} />}
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={fullTitle} />
<meta name="twitter:description" content={description} />
{imageURL && <meta name="twitter:image" content={imageURL} />}
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
21
to
+22
| const canonicalURL = new URL(Astro.url.pathname, Astro.site); | ||
| const imageURL = image && new URL(image, Astro.site); |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
openwaters-io | 6cab1fc | Commit Preview URL Branch Preview URL |
Aug 22 2026, 02:40 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link previews for /ais were text only and the title was just "AIS". The page now has a title that says what it is, a plain-language description, and a 1200×630 capture of the live map as the preview image. MainLayout takes an optional
imageprop for this and emitsog:image/twitter:imageas absolute URLs.This commit was made on
ais-pagesafter #86 had merged, so it is cherry-picked here.