1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-12-24 18:36:11 +01:00
site/_src/_includes/twittercards.html

30 lines
1.2 KiB
HTML
Raw Normal View History

<meta name="twitter:card" content="summary_large_image">
2017-06-21 14:49:47 +02:00
<meta name="twitter:site" content="@{{ site.social.twitter.handle }}">
<meta name="twitter:creator" content="@{{ site.social.twitter.handle }}">
2017-03-28 14:22:01 +02:00
{% if page.layout == 'usecase' %}
<meta name="twitter:title" content="{{ page.company }} &bull; &bull; {{ page.industry }} &bull; &bull; {{ site.name }}">
{% elsif page.title %}
2015-12-23 14:00:35 +01:00
<meta name="twitter:title" content="{{ page.title }} &bull; &bull; {{ site.name }}">
{% else %}
2015-12-23 14:00:35 +01:00
<meta name="twitter:title" content="{{ site.name }} &bull; &bull; {{ site.description }}">
{% 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 }}">
{% 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.jpg">
{% endif %}