Skip to content

Added Twitter Card - #281

Merged
wesbos merged 3 commits into
wesbos:masterfrom
jreyes88:master
Jan 10, 2020
Merged

Added Twitter Card#281
wesbos merged 3 commits into
wesbos:masterfrom
jreyes88:master

Conversation

@jreyes88

@jreyes88 jreyes88 commented Jan 10, 2020

Copy link
Copy Markdown
Contributor

Fixes #274

This is my first pull request on someone else's repo so I hope I'm doing this correctly.

I saw Wes' ticket about adding a Twitter card, so I went ahead and did that. The only thing missing is the image for the Twitter card, which I referenced as a file titled "twitter-card.png". I placed this file in /public, but that directory is gitignored. It was just a screenshot of the top of the page, but this file could be anything.

I figured /public would be a good spot for it since we don't actually need to do any work with it, Twitter just needs a preview image. Attaching it here.

twitter-card

Happy to remove the image line if it's too much trouble.

@HugoDF

HugoDF commented Jan 10, 2020

Copy link
Copy Markdown
Collaborator

@jreyes88 I believe we can use a static folder

See https://www.gatsbyjs.org/docs/static-folder/#adding-assets-outside-of-the-module-system

I'm not sure I'm a fan of the last line of tags being cropped in the image you posted.

@wesbos

wesbos commented Jan 10, 2020

Copy link
Copy Markdown
Owner

This is awesome! Could you do one thing and swap out the image with this one?

https://wes.io/wbukX5yj

@jreyes88

Copy link
Copy Markdown
Contributor Author

I think I got the right image in there. And good call @HugoDF on the static folder.

@jreyes88 jreyes88 closed this Jan 10, 2020
@transiient

transiient commented Jan 10, 2020

Copy link
Copy Markdown
Collaborator

Better yet, use this image instead!

awesome-uses

In the time I took to edit and post this, you'd already uploaded the other image! Just suggesting a cleaner alternative here <3

@jreyes88

Copy link
Copy Markdown
Contributor Author

Ack, not sure if I should have closed it. Sorry, I'm new to this. Reopening now.

@jreyes88 jreyes88 reopened this Jan 10, 2020
@wesbos
wesbos merged commit ad2f2f8 into wesbos:master Jan 10, 2020
@wesbos

wesbos commented Jan 10, 2020

Copy link
Copy Markdown
Owner

thanks a ton!

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.

Add Twitter card + other meta

4 participants