Update og

This commit is contained in:
samaradel
2022-04-17 16:52:29 +02:00
parent fa3b1775da
commit 5c6abb76fa

View File

@@ -13,32 +13,34 @@
<meta property="og:site_name" content="{{ config.base_url }}" /> <meta property="og:site_name" content="{{ config.base_url }}" />
{%if section.title%} {%if section.title%}
<title>{{ section.title }}</title> <title>{{ section.title }}</title>
<meta name="og:title" content="{{ section.title }}" /> <meta property="og:title" content="{{ section.title }}" />
{%endif%} {%endif%}
{%if page.title%} {%if page.title%}
<title>{{ page.title }}</title> <title>{{ page.title }}</title>
<meta name="og:title" content="{{ page.title }}" /> <meta property="og:title" content="{{ page.title }}" />
{%endif%} {%endif%}
{%if section.extra.imgPath %} {%if section.extra.imgPath %}
<meta name="image" content="{{ section.extra.imgPath }}" /> <meta name="image" content="{{ section.extra.imgPath }}" />
<meta name="og:image" content="{{ section.extra.imgPath }}" /> <meta property="og:image" content="{{ section.extra.imgPath }}" />
{%endif%} {%endif%}
{%if page.extra.imgPath%} {%if page.extra.imgPath%}
<meta name="image" content="{{ page.extra.imgPath }}" /> <meta name="image" content="{{ page.extra.imgPath }}" />
<meta name="og:image" content="{{ page.extra.imgPath }}" /> <meta property="og:image" content="{{ page.extra.imgPath }}" />
{%endif%} {%endif%}
{%if section.description%} {%if section.description%}
<meta name="description" content="{{ section.description }}" /> <meta name="description" content="{{ section.description }}" />
<meta name="og:description" content="{{ section.description }}" /> <meta property="og:description" content="{{ section.description }}" />
{%endif%} {%endif%}
{%if page.description%} {%if page.description%}
<meta name="description" content="{{ page.description }}" /> <meta name="description" content="{{ page.description }}" />
<meta name="og:description" content="{{ page.description }}" /> <meta property="og:description" content="{{ page.description }}" />
{%endif%} {%endif%}
{% else %} {% else %}
<title>{% if section.title %}{{ section.title }} &bull; {% endif %}{% if page.title %}{{ page.title }} &bull; {% endif %}{{ config.title }}</title> <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="og:title" content="{% if section.title %}{{ section.title }} &bull; {% endif %}{% if page.title %}{{ page.title }} &bull; {% endif %}{{ config.title }}" />
{% endif %} {% endif %}
<meta property="og:image" content="{% if page.extra.imgPath %}{{ page.extra.imgPath }} {% endif %}" />
<meta property="og:description" content="{% if page.description %}{{ page.description }} {% endif %}" />
{% endblock title %} {% endblock title %}