Skip to content

feat(website): branded Open Graph / Twitter social card#193

Merged
montfort merged 1 commit into
mainfrom
feat/open-graph-social-card
May 22, 2026
Merged

feat(website): branded Open Graph / Twitter social card#193
montfort merged 1 commit into
mainfrom
feat/open-graph-social-card

Conversation

@montfort
Copy link
Copy Markdown
Contributor

Summary

Replaces the default Docusaurus placeholder card with a custom 1200×630 PNG that matches the StrayMark brand. Used by og:image and twitter:image meta tags on every page of the site.

Preview (the actual static/img/og/straymark.png shipped in this PR):

og-card

What changed

  • website/static/img/og/straymark.png — the new 1200×630 card. Dark #0E0E10 background matching the site's theme-color, white StrayMark mark + wordmark, teal accent (#25C2A0) under the tagline, two rows of pillars (Framework · Rust CLI · Charters · AILOGs · External audits · ISO 42001 · EU AI Act · NIST AI RMF · GDPR mapping), straymark.dev URL in mono teal, and a Strange Days Tech, S.A.S. de C.V. attribution.
  • website/static/img/og/straymark.svg — the SVG source kept next to the PNG so the card can be re-rendered when the brand evolves. Just edit the SVG and run:
    inkscape static/img/og/straymark.svg \
      --export-type=png \
      --export-filename=static/img/og/straymark.png \
      --export-width=1200
  • website/docusaurus.config.tsthemeConfig.image updated from img/docusaurus-social-card.jpg to img/og/straymark.png.
  • website/static/img/docusaurus-social-card.jpg — deleted; nothing else referenced it.

Out of scope (later)

  • Per-page overrides for hero pages (landing, /quickstart, /features/cli, blog index). This PR only ships the site-wide fallback. Per-page cards are a follow-up if/when we want them.
  • Dynamic build-time generation per blog post via satori or similar. Same reasoning — wait until we know we need it.

Test plan

After deploy:

🤖 Generated with Claude Code

Replaces the default Docusaurus placeholder
(`static/img/docusaurus-social-card.jpg`) with a custom 1200×630 card
that matches the StrayMark identity: dark `#0E0E10` background, white
logo + wordmark, teal accent matching the dark-theme primary
(`#25C2A0`), tagline, key-feature pillars, and the
`Strange Days Tech, S.A.S. de C.V.` attribution.

The SVG source lives next to the PNG (`static/img/og/straymark.svg`)
so future brand iterations can re-render with:

  inkscape static/img/og/straymark.svg \
    --export-type=png \
    --export-filename=static/img/og/straymark.png \
    --export-width=1200

Wired through `themeConfig.image`, which Docusaurus uses to populate
the `og:image` and `twitter:image` meta tags on every page (verified
locally: built `index.html` references the new path).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@montfort montfort merged commit 962b03a into main May 22, 2026
1 check passed
montfort added a commit that referenced this pull request May 22, 2026
…s/cli (#196)

Two pages now have their own social card, layered on top of the
sitewide card shipped in #193. Both follow the same template (dark
#0E0E10 background, white wordmark, teal accent, attribution) and only
swap the tagline, the two pillar rows, and the URL footer:

  /quickstart  →  "Your first Charter, closed in 10–15 minutes."
                  declare → execute → log → validate → audit
                  Six sections · copy-paste commands · one Rust binary

  /features/cli → "One Rust binary. Eleven commands. No daemons."
                  init · validate · audit · analyze · compliance · ...
                  Deterministic outputs you can grep, jq, pipe to CI.

Wired via the `image:` frontmatter on the source MDX in each of the
three locales (en/es/zh-CN). Card design is intentionally locale-
agnostic — the visuals work the same regardless of which language the
linked page renders in.

Gotcha worth noting: Docusaurus' plugin-content-pages prefixes the
locale path onto a frontmatter `image: img/...`, so the meta tag would
point at /es/img/og/quickstart.png (a 404). Used absolute URLs
(https://straymark.dev/img/og/...) to bypass that resolution — same
domain as `themeConfig.image` resolves to anyway, so consistent.

Blog index intentionally not addressed (the blog plugin doesn't expose
a per-instance OG image config without swizzling).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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