LinkedIn can't read the meta image when generating previews
I'm not sure what they changed, but it used to work. LinkedIn used to be able to show a preview of the blog post with the proper image, now it only pulls the author image.
If you want to check an example, you can do so here: https://www.linkedin.com/post-inspector/inspect/ And paste any article to test: https://godotengine.org/article/introducing-the-improved-ufbx-importer-in-godot-4-3/
I've tried modifying the meta properties at the <head> of the default layout but had no luck.
In my tests I did:
<meta name="image" property="og:image" content="{{ site.url }}{{ page.image | default: '/assets/share-image.webp' }}"><meta property="og:image" content="{{ site.url }}{{ page.image | default: '/assets/share-image.webp' }}"><meta name="twitter:image" content="og:image" content="{{ site.url }}{{ page.image | default: '/assets/share-image.webp' }}">But it is still unresolved. If anyone knows how to make the changes feel free to comment here or send a PR. Thanks!
Unfortunately LinkedIn doesn't support Webp images; only JPG, PNG, or GIF are accepted.
I haven't confirmed it yet, but we are going to start using jpgs for new covers. If that makes it work in linkedin I'll consider this one done and close it. Thanks @pdfrod !
unfortunately, it seems like it is still not getting the article cover even if the image is a jpg: