Skip to content

Add global OG preview image#18

Open
ritorhymes wants to merge 1 commit into
eips-wg:masterfrom
ritovision:og-social-image
Open

Add global OG preview image#18
ritorhymes wants to merge 1 commit into
eips-wg:masterfrom
ritovision:og-social-image

Conversation

@ritorhymes

Copy link
Copy Markdown

Description

Updates the Open Graph metadata structure to use a shared, globally reused preview image for site and proposal links, and fixes an issue with the Open Graph URL tag.

The image follows the current canonical site theme, including the existing colors, styling, branding, and grey Ethereum logo treatment.

  • Add a shared Open Graph image asset for site and proposal link previews.
  • Emit Open Graph and Twitter image metadata across all pages.
  • Switch Twitter cards to the large-image preview format.
  • Fix the Open Graph URL tag to use the expected content value format.

Design

The image uses the standard 1200×630 Open Graph dimensions. The main content is kept within a centered 540×540 safe area so it remains legible if a platform crops the preview into a square. The left vertical accent line is just outside of the safe area so it should be expected to render when the full image does but not when cropped into a square since it has less visual purpose in that format.

This is the final OG image:

OG image with left accent line

I added the vertical accent line on the left to give the image more structure and visual balance.

For comparison, this is the version without the accent line:

OG image without left accent line

Shared image rationale

I do not think localized or per-EIP customized preview images are necessary.

It would be possible to extend the build system to dynamically generate a unique image for each EIP, including the title or other proposal-specific descriptors in the image itself. However, that would add build-processing overhead and create more room for rendering, caching, or metadata errors.

The Open Graph and Twitter text metadata already renders dynamically for each EIP, so proposal-specific titles and descriptions should still appear in link previews. Using a single shared image is a safer and simpler option that preserves the branding benefit while still giving readers the information they need.

Add a shared Open Graph image asset for site and proposal link previews.

Emit Open Graph and Twitter image metadata for every page.

Switch Twitter cards to the large-image preview format.

Fix the Open Graph URL tag to use the expected meta content form.
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