Skip to content

Commit

Permalink
Fix OG image for blog posts and LinkedIn
Browse files Browse the repository at this point in the history
LinkedIn was rendering the first image (the user's avatar) even
when there was a proper image set for the page.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jul 13, 2021
1 parent c58a578 commit a0d7646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

{% if page.image %}
<meta name="twitter:image:src" content="{{ site.url }}{{ page.image }}">
<meta property="og:image" content="{{ site.url }}{{ page.image }}">
{% else %}
<meta name="twitter:image:src" content="{{ site.url }}/images/twitter-card.png">
<meta property="og:image" content="{{ site.url }}/images/twitter-card.png">
{% endif %}

0 comments on commit a0d7646

Please sign in to comment.