From d284edc556064f8e7247cd618486f4766be78489 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 13 Dec 2015 12:30:55 -0800 Subject: [PATCH] Add Twitter card info --- _config.yml | 3 +++ source/_includes/site/head.html | 16 +++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index be2c843ca6e..93bf2914761 100644 --- a/_config.yml +++ b/_config.yml @@ -128,3 +128,6 @@ social: visible: false facebook: app_id: 338291289691179 + + twitter: + account: balloob diff --git a/source/_includes/site/head.html b/source/_includes/site/head.html index 15024e3c1ed..de9daf226ed 100644 --- a/source/_includes/site/head.html +++ b/source/_includes/site/head.html @@ -1,21 +1,21 @@ +{% if page.description %}{% capture fb_description %}{{ page.description }}{% endcapture %}{% else %}{% capture fb_description %}{{ content | raw_content }}{% endcapture %}{% endif %} +{% capture description %}{% if page.description %}{{ page.description }}{% elsif site.description %}{{ site.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} - {% if page.description %} {% capture fb_description %}{{ page.description }}{% endcapture %} {% else %} {% capture fb_description %}{{ content | raw_content }}{% endcapture %} {% endif %} {% if page.title %}{{ page.title }} - {% endif %}{{ site.title }} - {% capture description %}{% if page.description %}{{ page.description }}{% elsif site.description %}{{ site.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} {% if page.keywords %}{% endif %} - {% if site.social.facebook.app_id %} + @@ -23,9 +23,15 @@ - {% endif %} + + + + + + + - +