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

Twitter Cards fix #145

Closed
wants to merge 3 commits into from
Closed

Conversation

psthomas
Copy link

@psthomas psthomas commented Apr 4, 2020

Description of proposed changes

This pull request fixes a dead link in the open graph tags and adds basic twitter tags to the head of the static site. These tags will only work for the static content at nextstrain.org, not for the auspice content yet.

It also adds a component that can be used as an extension in Auspice to keep the open graph and twitter tags in sync with the pathogen dataset/narrative. This commit has a demo of how this could be used in head.js there.

Related issue(s)

Related to #134

Testing

I uploaded the static site to Netlify to test on Twitter's card validator and it seems to work for all the static content. The integration with auspice should probably be tested in that repo.

validator image

@psthomas psthomas marked this pull request as draft April 14, 2020 01:40
@psthomas psthomas force-pushed the twittercards-fix branch 2 times, most recently from 216f3cf to 184ac37 Compare April 17, 2020 21:57
The open graph image in the meta tags 404s because the siteLogo url in
SiteConfig.js points to the location in the repo rather than the public
location after the static site is built.
Adds a basic twitter summary card using the same title, image, and
description as the open graph tags. Also improves the tag logic.
Adds a react component that can be imported into Auspice as an
extension. This will sync the open graph and twitter tags with
the current pathogen title, description and splash image.
@psthomas psthomas marked this pull request as ready for review April 20, 2020 19:12
@psthomas psthomas closed this Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant