mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-24 19:17:12 +00:00
Add support for Twitter card summary_large_image. Fixes #28
This commit is contained in:
parent
5b80cc1d2a
commit
4e86b51f98
1 changed files with 12 additions and 7 deletions
|
@ -2,19 +2,24 @@
|
||||||
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title>
|
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}</title>
|
||||||
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
||||||
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
|
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
|
||||||
{% if site.owner.twitter %}<!-- Twitter Card and Open Graph tags -->
|
|
||||||
<meta name="twitter:title" content="{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}">
|
{% if site.owner.twitter %}<!-- Twitter Cards -->
|
||||||
|
{% 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 %}
|
||||||
|
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
||||||
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
||||||
<meta name="twitter:creator" content="@{{ site.owner.twitter }}">
|
<meta name="twitter:creator" content="@{{ site.owner.twitter }}">{% endif %}
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:image:src" 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="en_US">
|
||||||
<meta property="og:type" content="article">
|
<meta property="og:type" content="article">
|
||||||
<meta property="og:title" content="{% if page.title %}{{ page.title }} – {% endif %}{{ site.title }}">
|
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
|
||||||
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
|
||||||
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
||||||
<meta property="og:site_name" content="{{ site.title }}">
|
<meta property="og:site_name" content="{{ site.title }}">
|
||||||
|
|
||||||
<!-- Webmaster Tools verfication -->
|
|
||||||
{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %}
|
{% if site.google_verify %}<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %}
|
||||||
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %}
|
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue