[codex] fix Twitter card meta attributes#612
Closed
Sean-Kenneth-Doherty wants to merge 4 commits into
Closed
Conversation
Author
|
Withdrawing this to keep the contribution queue focused on the highest-signal fixes. I opened too many small slices here, and this one is less important than the concrete broken-link, security, workflow, rendering, and accessibility fixes that remain open. |
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
property="twitter:*"toname="twitter:*".og:image:altandtwitter:image:altmetadata with a reusableimageAltlayout prop.@1stContributionhandle used elsewhere in the site.og:image/twitter:imageURL.Why
X/Twitter Cards documentation shows card properties as
meta name="twitter:..."tags, documentstwitter:image:altfor accessible image descriptions, and says SVG is not supported for card images. Keeping the shared layout aligned with that markup makes the home page social metadata easier for card crawlers and validators to consume.Reference: https://developer.x.com/cards/markup
Validation
magick public/og-image.svg public/og-image.pngfile public/og-image.pngandidentify public/og-image.pngconfirmed a 1200x630 PNGpnpm builddist/index.htmlcontainsmeta name="twitter:card",twitter:title,twitter:description,twitter:image,twitter:image:alt,twitter:creator, andtwitter:sitedist/index.htmlcontainsog:image,og:image:alt, and points image metadata tohttps://firstcontributions.github.io/og-image.pngdist/og-image.pngexists as a 1200x630 PNG<title>,og:title, andtwitter:titleare 62 charactersdist/index.htmlno longer containsmeta property="twitter:*"tags for the home pagegit diff --checkContributes to #348.