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

28 lines
1.0 KiB
HTML
Raw Normal View History

<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 }} &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.png">
{% endif %}