2015-12-20 05:22:45 +01:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
<meta name="twitter:site" content="@{{ site.twitter }}">
|
|
|
|
<meta name="twitter:creator" content="@{{ site.twitter }}">
|
|
|
|
|
|
|
|
{% if page.title %}
|
2015-12-23 14:00:35 +01:00
|
|
|
<meta name="twitter:title" content="{{ page.title }} • • {{ site.name }}">
|
2015-12-20 05:22:45 +01:00
|
|
|
{% else %}
|
2015-12-23 14:00:35 +01:00
|
|
|
<meta name="twitter:title" content="{{ site.name }} • • {{ site.description }}">
|
2015-12-20 05:22:45 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page.url %}
|
|
|
|
<meta name="twitter:url" content="{{ site.url}}{{ page.url | replace:'index.html','' }}">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page.description %}
|
|
|
|
<meta name="twitter:description" content="{{ page.description }}">
|
2015-12-23 14:00:35 +01:00
|
|
|
{% elsif page.front_page %}
|
|
|
|
<meta name="twitter:description" content="{{ site.description }}">
|
2015-12-20 05:22:45 +01:00
|
|
|
{% else %}
|
|
|
|
<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page.image %}
|
|
|
|
<meta name="twitter:image:src" content="{{ site.url }}/assets/img/{{ page.image }}">
|
|
|
|
{% else %}
|
|
|
|
<meta name="twitter:image:src" content="{{ site.url }}/assets/img/share-image.png">
|
|
|
|
{% endif %}
|