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

use intro text for meta description on front page

This commit is contained in:
Matthias Kretschmann 2018-04-12 15:55:02 +02:00
parent d0213fec0f
commit 15bccef03d
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% elsif page.front_page %}
<meta name="description" content="{{ site.description }}">
<meta name="description" content="{{ page.intro.description }}">
{% else %}
<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines }}" />
{% endif %}

View File

@ -12,7 +12,7 @@
{% if page.description %}
<meta content="{{ page.description }}" property="og:description">
{% elsif page.front_page %}
<meta content="{{ site.description }}" property="og:description">
<meta content="{{ page.intro.description }}" property="og:description">
{% else %}
<meta content="{{ page.excerpt | strip_html | strip_newlines }}" property="og:description">
{% endif %}

View File

@ -17,7 +17,7 @@
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
{% elsif page.front_page %}
<meta name="twitter:description" content="{{ site.description }}">
<meta name="twitter:description" content="{{ page.intro.description }}">
{% else %}
<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">
{% endif %}