Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add twitter:creator and twitter:site meta tags as individual and combined nodes #53

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

Conversation

@harryday123
Copy link

@harryday123 harryday123 commented Aug 3, 2020

Hi all,
This change is quite simple but something I use a lot. Along with the currently supported Twitter meta data for sharing links this adds a few extras.

The tag twitter:creator is used to identify the author or creator of a page by their Twitter handle (for example @ JohnSundell twitter account)
The tag twitter:site is used to identify the site by it's Twitter handle (for example the @ SwiftBySundell twitter account)

I have added three new nodes. twitterCreatorHandle, twitterSiteHandle and twitterHandle. twitterCreatorHandle and twitterSiteHandle each add their own tags and twitterHandle adds both.

<meta name="twitter:creator" content="@CreatorHandle"/>
<meta name="twitter:site" content="@SiteHandle"/>

@mwermeester
Copy link
Contributor

@mwermeester mwermeester commented Jan 24, 2021

Great!

The twitter:creator meta tag should however only be generated for the Summary with Large Image card.

The reference can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants