Update meta data

This commit is contained in:
samaradel
2022-09-18 13:55:00 +02:00
parent 65f337e309
commit 35cef44309

View File

@@ -7,49 +7,40 @@
<head> <head>
<link rel="icon" type="image/x-icon" href="{{ get_url(path='images/icons/favicon.png')}}"> <link rel="icon" type="image/x-icon" href="{{ get_url(path='images/icons/favicon.png')}}">
{% block title %} {% block title %}
{% if current_path == '/' %}
<title>{{ config.title }}</title> <title>{{ config.title }}</title>
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<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 property="og:title" content="{{ section.title }}" /> <meta property="og:title" content="{{ section.title }}" />
{%endif%} {% elif page.title %}
{%if page.title%}
<title>{{ page.title }}</title> <title>{{ page.title }}</title>
<meta property="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 property="og:image" content="{{ section.extra.imgPath }}" /> <meta property="og:image" content="{{ section.extra.imgPath }}" />
{%endif%} <meta property="twitter:image" content="{{ section.extra.imgPath }}" />
{%if page.extra.imgPath%} {% elif page.extra.imgPath %}
<meta name="image" content="{{ page.extra.imgPath }}" /> <meta name="image" content="{{ page.extra.imgPath }}" />
<meta property="og:image" content="{{ page.extra.imgPath }}" /> <meta property="og:image" content="{{ page.extra.imgPath }}" />
<meta property="twitter: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 property="og:description" content="{{ section.description }}" /> <meta property="og:description" content="{{ section.description }}" />
{%endif%} <meta property="twitter:description" content="{{ section.description }}" />
{%if page.description%} {%elif page.description%}
<meta name="description" content="{{ page.description }}" /> <meta name="description" content="{{ page.description }}" />
<meta property="og:description" content="{{ page.description }}" /> <meta property="og:description" content="{{ page.description }}" />
<meta property="twitter:description" content="{{ page.description }}" />
{%endif%} {%endif%}
{% 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" /> <meta name="twitter:card" content="summary_large_image" />
{% endblock title %} {% endblock title %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/brands.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/brands.min.css" />