Add global OG preview image#18
Open
ritorhymes wants to merge 1 commit into
Open
Conversation
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.
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.
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.
contentvalue 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:
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:
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.