2014-07-31 15:37:41 +02:00
|
|
|
<!-- 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">
|
2014-08-08 21:45:24 +02:00
|
|
|
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/default-thumb.png{% endif %}">
|
2014-07-31 15:37:41 +02:00
|
|
|
{% 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 }}">
|