aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-10-20 21:26:47 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2019-10-20 21:26:47 +0200
commitad5c8f0bb528e6d0da0a20f99997ce971544f4b8 (patch)
tree781358afd99380e9260cf88d638ce587f364704e /_layouts
parent86e58a3fc98fc69a133e621b713773d2b8a5efe9 (diff)
downloadjo.mssola.com-ad5c8f0bb528e6d0da0a20f99997ce971544f4b8.tar.gz
jo.mssola.com-ad5c8f0bb528e6d0da0a20f99997ce971544f4b8.zip
More refining on twitter cards
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 9ae7643..bf03d37 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -27,16 +27,9 @@
<title>{{ title }}</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
{% capture description %}{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
- <meta name="description" content="{{ description }}">
-
- {% comment %}<!-- Twitter stuff -->{% endcomment %}
- <meta name="twitter:card" content="summary_large_image" />
- <meta name="twitter:site" content="@miquelssola" />
- <meta name="twitter:creator" content="@miquelssola" />
- <meta name="twitter:description" content="{{ description }}" />
- <meta name="twitter:title" content="{{ title }}" />
+ <meta name="description" content="{{ description }}" />
{% comment %}<!-- OpenGraph protocol -->{% endcomment %}
{% if site.lang == "ca" %}
@@ -51,6 +44,13 @@
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ description }}" />
<meta property="og:type" content="website" />
+
+ {% comment %}<!-- Twitter stuff -->{% endcomment %}
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@miquelssola" />
+ <meta name="twitter:creator" content="@miquelssola" />
+ <meta name="twitter:description" content="{{ description }}" />
+ <meta name="twitter:title" content="{{ title }}" />
{% render_og_image %}
{% comment %}<!-- We have the same CSS file for all languages -->{% endcomment %}