mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-23 02:27:13 +00:00
19 lines
1.3 KiB
HTML
19 lines
1.3 KiB
HTML
|
<!-- Twitter Cards -->
|
||
|
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
||
|
{% if page.excerpt %}<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">{% endif %}
|
||
|
{% if site.owner.twitter %}<meta name="twitter:site" content="@{{ site.owner.twitter }}">{% endif %}
|
||
|
{% if author.twitter %}<meta name="twitter:creator" content="@{{ author.twitter }}">{% endif %}
|
||
|
{% if page.image.feature %}
|
||
|
<meta name="twitter:card" content="summary_large_image">
|
||
|
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}">
|
||
|
{% else %}
|
||
|
<meta name="twitter:card" content="summary">
|
||
|
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">
|
||
|
{% endif %}
|
||
|
<!-- Open Graph -->
|
||
|
<meta property="og:locale" content="{{ site.locale }}">
|
||
|
<meta property="og:type" content="article">
|
||
|
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
||
|
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | strip_html }}">{% endif %}
|
||
|
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
||
|
<meta property="og:site_name" content="{{ site.title }}">
|