Fix twitter card

This commit is contained in:
samaradel
2022-04-17 17:13:36 +02:00
parent 7fce1d6170
commit 596fcefb7d

View File

@@ -38,11 +38,13 @@
{% else %}
<title>{% if section.title %}{{ section.title }} &bull; {% endif %}{% if page.title %}{{ page.title }} &bull; {% endif %}{{ config.title }}</title>
<meta property="og:title" content="{% if section.title %}{{ section.title }} &bull; {% endif %}{% if page.title %}{{ page.title }} &bull; {% endif %}{{ config.title }}" />
<meta property="twitter:title" content="{% if section.title %}{{ section.title }} &bull; {% endif %}{% if page.title %}{{ page.title }} &bull; {% endif %}{{ config.title }}" />
{% endif %}
<meta property="og:image" content="{% if page.extra.imgPath %} {{ config.base_url }}/{{ page.extra.imgPath }} {% endif %}" />
<meta property="og:description" content="{% if page.description %}{{ page.description }} {% endif %}" />
<meta property="twitter:image" content="{% if page.extra.imgPath %} {{ config.base_url }}/{{ page.extra.imgPath }} {% endif %}" />
<meta property="twitter:description" content="{% if page.description %}{{ page.description }} {% endif %}" />
<meta name="twitter:card" content="summary_large_image"/>
{% endblock title %}