Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Improve Twitter cards & Open Graph tags. #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Feb 16, 2016

Fixes the following issues:

Issue 1:
Twitter cards require the ':site' tag.

twitter:site
@username of website. Either twitter:site or twitter:site:id is required.

Ref: https://dev.twitter.com/cards/markup

The site tag is supposed to be used for the site specific twitter account, the creator tag for the twitter account of the author or the article.

Adding a config variable for the site twitter account to account for this.

Twitter tags will be shown if either (site.twitter or site.owner.twitter) is available.
Both tags will fall back to each other.

Issue 2:
Twitter cards will automatically fall back to Open graph tags if available, so we can remove the Twitter specific title and description tags as those are duplicated in the open graph tags.

Also, the OG tags did not have the image tag while twitter did, so moving those from twitter to OG, to make them available to both.

Ref: https://dev.twitter.com/cards/getting-started#opengraph

Issue 3:
Not all sites are written in US english.

Adding a config variable to set the locale of a site.

Fixes the following issues:

__*Issue 1:*__
Twitter cards require the ':site' tag.

> twitter:site
> @username of website. Either twitter:site or twitter:site:id is required.

Ref: https://dev.twitter.com/cards/markup

The `site` tag is supposed to be used for the site specific twitter account, the `creator` tag for the twitter account of the author or the article.

Adding a config variable for the site twitter account to account for this.

Twitter tags will be shown if either (site.twitter or site.owner.twitter) is available.
Both tags will fall back to each other.

__*Issue 2:*__
Twitter cards will automatically fall back to Open graph tags if available, so we can remove the Twitter specific title and description tags as those are duplicated in the open graph tags.

Also, the OG tags did not have the image tag while twitter did, so moving those from twitter to OG, to make them available to both.

Ref: https://dev.twitter.com/cards/getting-started#opengraph

__*Issue 3:*__
Not all sites are written in US english.

Adding a config variable to set the locale of a site.
mpark pushed a commit to mpark/mpark.github.io that referenced this pull request May 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant