Skip to content

feat: OG/Twitter/canonical meta + brand OG card - #16

Merged
neuromechanist merged 1 commit into
feature/issue-1-epic-nemar-redesignfrom
feature/issue-1-seo-og-meta
May 18, 2026
Merged

neuromechanist merged 1 commit into
feature/issue-1-epic-nemar-redesignfrom
feature/issue-1-seo-og-meta

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Adds full social/SEO meta-tag coverage to every page, plus a 1200x630 default OG card. Pairs with #15 (favicon).

What lands

Base.astro

  • New props on `Base`: `image?: string`, `ogType?: "website" | "article"`. Defaults: `/og-image.png` + "website".
  • Resolves `Astro.url.pathname` against `Astro.site` (`https://nemar.org\`) to emit absolute canonical and og:image URLs — crawlers and Twitter both reject relative ones.
  • Adds:
    • `<link rel="canonical">`
    • `<meta property="og:type">`, `og:site_name`, `og:title`, `og:description`, `og:url`, `og:image` (+ width/height/alt)
    • `<meta name="twitter:card" content="summary_large_image">` + twitter:title/description/image/image:alt

Per-page customization

public/og-image.png (1200x630, 508 KB)

Brand-matched dark gradient with the NEMAR brain mark, wordmark, hero tagline, key stats, and `nemar.org`. Rendered by gstack browse from an HTML composition.

Test plan

  • After deploy, `view-source` on /, /discover, and /dataset/<id> shows OG + Twitter meta tags with absolute URLs.
  • Twitter Card Validator + Facebook Sharing Debugger accept the URL and preview the card.
  • Canonical URLs use https://nemar.org (not the pages.dev hostname).
  • Detail pages report og:type=article; everything else reports website.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 16, 2026 •

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7e71c8b
Status:🚫  Build failed.

View logs

@neuromechanist
neuromechanist force-pushed the feature/issue-1-seo-og-meta branch from a383cca to 7e71c8b Compare May 18, 2026 08:16
@neuromechanist
neuromechanist merged commit abda36d into feature/issue-1-epic-nemar-redesign May 18, 2026
1 check failed
@neuromechanist
neuromechanist deleted the feature/issue-1-seo-og-meta branch May 18, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant