BelaPlatform / bela_newBlog

2 stars 1 forks source link

og:image content= #19

Open giuliomoro opened 6 years ago

giuliomoro commented 6 years ago

This is the meta property that tells facebook which pic to pick for the link preview.

Blog posts used to get that path wrong:

<meta property="og:image" content="{% if page.image %}{{ page.image }}{% else %}{{ site.default_img }}{% endif %}">

this was giving a wrong relative path, like e.g.:

<meta property="og:image" content="bela-mini-launch/header.jpg">

as a consequence, facebook was picking the first pic instead of the header pic.

Now I fixed it so it actually gets the right URL pics for the header pic 01f6671e756ca1227db7fed787fbfed188deeeb6 . Would it be appropriate to have an option for the author of the post to pick a different pic from the header one? With some other optional param maybe? Just asking

roberthjack commented 6 years ago

To be honest I think it's overkill. This is great as it is.