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

Support meta image for sharing #63

Open
ZeroX-DG opened this issue Jul 4, 2021 · 2 comments
Open

Support meta image for sharing #63

ZeroX-DG opened this issue Jul 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ZeroX-DG
Copy link
Contributor

ZeroX-DG commented Jul 4, 2021

It would be really nice if we can have a "cover" image whenever we share a post on Facebook, Twitter or Slack. You can argue that user can directly share the original post to support cover image but still...it would be nice if we can generate a cover if it was shared via weblog.

I'm thinking of generating the cover image based on the post (pretty much like Github). A sample image could look like this:

image

@lqt93 lqt93 added the enhancement New feature or request label Jul 4, 2021
@lqt93
Copy link
Collaborator

lqt93 commented Jul 4, 2021

It is good to have this feature. However, to help the author to gain traffic for their page, for current posts, I think we should support sharing the original link instead. Sharing with meta like this can be used for future features like joint posts, or posts like "30 days of sharing", etc.

@huytd
Copy link
Collaborator

huytd commented Jul 8, 2021

Something like this would be helpful: https://github.com/vercel/og-image

Or we can take a look at the implementation and learn from it.


About original link, I think we can handle it like this:

  • If we gonna implement the social sharing buttons, the shared link should be the original link, and the author's blog should handle meta image.
  • If the user just copy WeBuild Blog's link, we should handle the meta image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants