1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-25 11:08:29 +01:00
site/_src/_includes/twittercards.html
Matthias Kretschmann 7cad1ec40a finalized starting point
- use Jekyll for now
- build process through gulp
- dependencies through npm & bundle
- scss: variables, grid, fonts, first components
- js setup
2015-12-20 05:22:45 +01:00

26 lines
935 B
HTML

<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 %}
<meta name="twitter:title" content="{{ page.title }} &#124; {{ site.name }}">
{% else %}
<meta name="twitter:title" content="{{ site.name }} &#124; {{ 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 }}">
{% 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 %}