Open bminaiev opened 1 year ago
I had the same issue on my website. As a workaround, I removed the assets/img/
part from the image elements in _layouts/post.html
and _layouts/home.html
. And for all posts, I've added assets/img/
in front of the image path. This fixed the preview cards in social media for me.
og:image
meta tag is used to generate cards for social media (twitter/facebook/...). Currently, it is generated by thejekyll-seo-tag
plugin based onpost:image
.The problem is
jekyll-seo-tag
expects the image path to be full, whileLagrange
expects it relative toassets/img
.In the example page, there is an
og:image
tag:which contains an incorrect path. So if you share a link to this page on Twitter, the image is not shown.