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

Image displayed when sharing links from biouno.org #28

Open
kinow opened this issue Mar 1, 2019 · 1 comment
Open

Image displayed when sharing links from biouno.org #28

kinow opened this issue Mar 1, 2019 · 1 comment

Comments

@kinow
Copy link
Member

kinow commented Mar 1, 2019

Follow-up from #27

@imoutsatsos, should we have one image used for all links, or should we specify one per page? Google/YouTube/Twitter/FaceBook/etc try to get one image from the link shared.

But it also looks for Open Graph tags. They are special tags used in the HTML code to tell the other sites which information we have (it's some vocabulary from semantic web, you probably use something similar for metadata).

We can test it with a tool like this one: https://opengraphcheck.com/

Here's a post from NIWA: https://opengraphcheck.com/result.php?url=https%3A%2F%2Fniwa.co.nz%2Fnews%2Finternational-climate-experts-gather-in-wellington

And here's our main page: https://opengraphcheck.com/result.php?url=http%3A%2F%2Fbiouno.org%2F

So we have a few options:

  • Add an image to landing page, with the open graph tags.
  • When a post has an image, we have to remember to copy the example HTML with Open Graph annotations (or we can look for a Jekyll plugin that does that)
  • Add a general image for Open Graph. But that way I don't believe we would be able to overwrite it. So it would be always the same image.

WDYT?

@kinow
Copy link
Member Author

kinow commented Apr 15, 2019

@imoutsatsos the new version of the theme has something we can try and see if that works in the next post: https://mmistakes.github.io/minimal-mistakes/docs/layouts/#open-graph--twitter-card-images

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

No branches or pull requests

1 participant