Set og:type to article so Pinterest's Rich Pin validator finds one - #123
Merged
Merged
Conversation
Pinterest only recognises og:type "article" or "blog" as Rich-Pin eligible; the preview page was sending "website", which Pinterest never treats as a Rich Pin regardless of what other og:/twitter: tags are present -- every other unfurler (Slack, Facebook, Discord, Bluesky) was already unaffected since they don't gate on og:type the same way. Also adds article:section (the term kind -- class/individual/template/ term) since it's free to provide and Pinterest lists it as optional- but-useful; og:site_name was already present and is Pinterest's other strongly-recommended tag.
|
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.
Pinterest only recognises
og:type"article" or "blog" as Rich-Pin eligible; the preview page was sending "website", which Pinterest never treats as a Rich Pin no matter what otherog:/twitter:tags are present — that's why the validator said "We were not able to find a Rich Pin!" even though the ordinary preview (title/description/image) was already working everywhere else (Slack, Facebook, Discord, Bluesky don't gate onog:typethe same way).Also adds
article:section(the term kind — class/individual/template/term), which Pinterest lists as optional-but-useful and costs nothing to include.og:site_namewas already present and is the other tag Pinterest strongly recommends.New test added (
test_page_qualifies_for_pinterest_article_rich_pin); all 39 tests pass.