1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

fix Twitter Cards, nicer meta title

This commit is contained in:
Matthias Kretschmann 2015-12-23 14:00:35 +01:00
parent 88c4937c52
commit 2106cf884b
4 changed files with 10 additions and 8 deletions

View File

@ -3,7 +3,7 @@
# The Basics
# --------------------
name: Bigchain
description: Bigchain is coming.
description: 'The worlds most scalable blockchain.'
url: http://www.bigchain.io
email:

View File

@ -4,11 +4,11 @@
<!-- Dynamic meta title -->
<title>
{% if paginator.previous_page %}
Page {{ paginator.page }} &#124; {{ site.name }}
Page {{ paginator.page }} &bull; &bull; {{ site.name }}
{% elsif page.title %}
{{ page.title }} &#124; {{ site.name }}
{{ page.title }} &bull; &bull; {{ site.name }}
{% else %}
{{ site.name }} &#124; {{ site.description }}
{{ site.name }} &bull; &bull; {{ site.description }}
{% endif %}
</title>

View File

@ -2,9 +2,9 @@
<meta content="{{ site.name }}" property="og:site_name">
{% if page.title %}
<meta content="{{ page.title }} &#124; {{ site.name }}" property="og:title">
<meta content="{{ page.title }} &bull; &bull; {{ site.name }}" property="og:title">
{% else %}
<meta content="{{ site.name }} &#124; {{ site.description }}" property="og:title">
<meta content="{{ site.name }} &bull; &bull; {{ site.description }}" property="og:title">
{% endif %}
{% if page.description %}

View File

@ -3,9 +3,9 @@
<meta name="twitter:creator" content="@{{ site.twitter }}">
{% if page.title %}
<meta name="twitter:title" content="{{ page.title }} &#124; {{ site.name }}">
<meta name="twitter:title" content="{{ page.title }} &bull; &bull; {{ site.name }}">
{% else %}
<meta name="twitter:title" content="{{ site.name }} &#124; {{ site.description }}">
<meta name="twitter:title" content="{{ site.name }} &bull; &bull; {{ site.description }}">
{% endif %}
{% if page.url %}
@ -14,6 +14,8 @@
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
{% elsif page.front_page %}
<meta name="twitter:description" content="{{ site.description }}">
{% else %}
<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">
{% endif %}