mirror of
https://github.com/bigchaindb/site.git
synced 2024-12-24 02:16:10 +01:00
fix Twitter Cards, nicer meta title
This commit is contained in:
parent
88c4937c52
commit
2106cf884b
@ -3,7 +3,7 @@
|
||||
# The Basics
|
||||
# --------------------
|
||||
name: Bigchain
|
||||
description: Bigchain is coming.
|
||||
description: 'The world’s most scalable blockchain.'
|
||||
url: http://www.bigchain.io
|
||||
|
||||
email:
|
||||
|
@ -4,11 +4,11 @@
|
||||
<!-- Dynamic meta title -->
|
||||
<title>
|
||||
{% if paginator.previous_page %}
|
||||
Page {{ paginator.page }} | {{ site.name }}
|
||||
Page {{ paginator.page }} • • {{ site.name }}
|
||||
{% elsif page.title %}
|
||||
{{ page.title }} | {{ site.name }}
|
||||
{{ page.title }} • • {{ site.name }}
|
||||
{% else %}
|
||||
{{ site.name }} | {{ site.description }}
|
||||
{{ site.name }} • • {{ site.description }}
|
||||
{% endif %}
|
||||
</title>
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
<meta content="{{ site.name }}" property="og:site_name">
|
||||
|
||||
{% if page.title %}
|
||||
<meta content="{{ page.title }} | {{ site.name }}" property="og:title">
|
||||
<meta content="{{ page.title }} • • {{ site.name }}" property="og:title">
|
||||
{% else %}
|
||||
<meta content="{{ site.name }} | {{ site.description }}" property="og:title">
|
||||
<meta content="{{ site.name }} • • {{ site.description }}" property="og:title">
|
||||
{% endif %}
|
||||
|
||||
{% if page.description %}
|
||||
|
@ -3,9 +3,9 @@
|
||||
<meta name="twitter:creator" content="@{{ site.twitter }}">
|
||||
|
||||
{% if page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }} | {{ site.name }}">
|
||||
<meta name="twitter:title" content="{{ page.title }} • • {{ site.name }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.name }} | {{ site.description }}">
|
||||
<meta name="twitter:title" content="{{ site.name }} • • {{ 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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user