Skip to content

Add social image - #442

Merged
nohwnd merged 1 commit into
mainfrom
social-image
Aug 11, 2026
Merged

Add social image#442
nohwnd merged 1 commit into
mainfrom
social-image

Conversation

@nohwnd

@nohwnd nohwnd commented Aug 11, 2026

Copy link
Copy Markdown
Member

Card reuses the homepage hero: same gradient, same turtle, same copy. 1200x630.

social card

themeConfig.image sets og:image and twitter:image on every page, and twitter:card is already summary_large_image by default, so nothing else is needed. Verified in build/index.html and in a docs page.

I kept the source at static/img/social-card.svg so the text can be changed later without redrawing it. It is not used by the site, drop it if you think it is clutter.

Jpg because png of the same card is 600 kB and this one is 84 kB.

Fix #419

🤖

Sets og:image and twitter:image site-wide. Card uses the same gradient,
turtle and copy as the homepage hero.

Fix #419
@fflaten

fflaten commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

I like it 👍

Unable to test platform previews with online tools because og:image tag uses absolute paths and currently points to pester.dev. Let's just merge and see :)


Or if you want to get fancy, extend netlify.toml with

[context.deploy-preview.environment]
  IS_NETLIFY_PREVIEW = "true"

and docusaurus.config.js with:

const isPreview = process.env.IS_NETLIFY_PREVIEW === 'true';

// Use Netlify preview domain for PRs, else production domain
const siteUrl = isPreview 
  ? process.env.DEPLOY_PRIME_URL 
  : 'https://pester.dev';

const config = {
  ...
  url: siteUrl,
  noIndex: isPreview,

@nohwnd
nohwnd merged commit 895424a into main Aug 11, 2026
4 checks passed
@nohwnd
nohwnd deleted the social-image branch August 11, 2026 19:51
@nohwnd

nohwnd commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

@fflaten merged!

@nohwnd
nohwnd restored the social-image branch August 11, 2026 19:54
@fflaten

fflaten commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

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.

Add social image

2 participants