feat(website): branded Open Graph / Twitter social card#193
Merged
Conversation
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
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>
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.
Summary
Replaces the default Docusaurus placeholder card with a custom 1200×630 PNG that matches the StrayMark brand. Used by
og:imageandtwitter:imagemeta tags on every page of the site.Preview (the actual
static/img/og/straymark.pngshipped in this PR):What changed
website/static/img/og/straymark.png— the new 1200×630 card. Dark#0E0E10background matching the site'stheme-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.devURL in mono teal, and aStrange 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:website/docusaurus.config.ts—themeConfig.imageupdated fromimg/docusaurus-social-card.jpgtoimg/og/straymark.png.website/static/img/docusaurus-social-card.jpg— deleted; nothing else referenced it.Out of scope (later)
/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.satorior similar. Same reasoning — wait until we know we need it.Test plan
After deploy:
index.html(en/es/zh-CN) all include<meta property="og:image" content="https://straymark.dev/img/og/straymark.png">✅ (verified locally)https://straymark.dev/→ renders correctlysummary_large_imageshows the new cardhttps://straymark.devinto a channel → unfurl shows the card🤖 Generated with Claude Code