From 2c33d1fb0061083aba147cb85e179f8fb4e68381 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Mon, 3 Jun 2019 10:16:59 -0700 Subject: website: twitter card fix --- docs/_layouts/default.html | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'docs/_layouts') diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 895373646..89ee612fc 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -1,6 +1,8 @@ {% assign build_version = site.time | date: "%Y%m%d%H%M%S" %}{% -assign description = "Inter is a typeface optimized for computer-user interfaces" %}{% +assign description = "Inter is a typeface family optimized for user interfaces and computer screens" %}{% + +capture title %}{% if page.title %}{{ page.title }} — Inter{% else %}Inter font family{% endif %}{% endcapture %}{% if site.safe == false %}{% assign url_root = "/" %}{% else %}{% @@ -29,7 +31,7 @@ endfor - {% if page.title %}{{ page.title }} — Inter{% else %}Inter font family{% endif %} + {{title}} @@ -40,22 +42,25 @@ endfor {% include preload-font-files.html %} - - - - + + + + + - {% if page.title %} - + + {% else %} + + {% endif %} {% if page.og_image_url %} - + {% else %} - + {% endif %} -- cgit v1.2.3