webuild-community / federated-blog

A federated blog platform built for WeBuild Community
https://read.webuild.community/
58 stars 34 forks source link

Support meta image for sharing #63

Open ZeroX-DG opened 3 years ago

ZeroX-DG commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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: