jekyll/jekyll-seo-tag

Why is there no og:image and twitter:image tags?

kvanlombeek opened this issue · 1 comments

These image tags are important to display the website attractively when somebody shares the site on Twitter or Facebook or Whatsapp.

The plugin does render these tags:

{% if seo_tag.image %}
<meta property="og:image" content="{{ seo_tag.image.path }}" />
{% if seo_tag.image.height %}
<meta property="og:image:height" content="{{ seo_tag.image.height }}" />
{% endif %}
{% if seo_tag.image.width %}
<meta property="og:image:width" content="{{ seo_tag.image.width }}" />
{% endif %}
{% endif %}

{% if seo_tag.image %}
<meta name="twitter:card" content="{{ page.twitter.card | default: site.twitter.card | default: "summary_large_image" }}" />
<meta property="twitter:image" content="{{ seo_tag.image.path }}" />
{% else %}
<meta name="twitter:card" content="summary" />
{% endif %}

Perhaps you'd like to take a look at the documentation:
https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md