add og:image:alt

This commit is contained in:
maia arson crimew 2023-01-19 21:15:46 +01:00
parent 886c8764e4
commit 7cd3c58437

View file

@ -13,6 +13,7 @@
<meta property="og:description" content="{{ description if description else site.description }}"> <meta property="og:description" content="{{ description if description else site.description }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}"> <meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:image" content="{% if feature_image %}{{ site.url }}{{ feature_image }}{% else %}{{ site.url }}/img/cover.jpg{% endif %}"> <meta property="og:image" content="{% if feature_image %}{{ site.url }}{{ feature_image }}{% else %}{{ site.url }}/img/cover.jpg{% endif %}">
{% if feature_alt %}<meta property="og:image:alt" content="{{ feature_alt }}">{% endif %}
<meta property="og:site_name" content="{{ site.title }}"> <meta property="og:site_name" content="{{ site.title }}">
<meta name="article:author" content="{{ site.name }}"> <meta name="article:author" content="{{ site.name }}">
{% if date %}<meta name="article:published_time" content="{{ date | date_to_datetime }}">{% endif %} {% if date %}<meta name="article:published_time" content="{{ date | date_to_datetime }}">{% endif %}