From 722d3808b4cc5cd19d5d069d96129df68bacdc64 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 14 Dec 2015 18:33:47 -0800 Subject: [PATCH] Update twitter card type --- _deploy | 2 +- source/_includes/site/head.html | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_deploy b/_deploy index 7cea6805534..d484b0f1134 160000 --- a/_deploy +++ b/_deploy @@ -1 +1 @@ -Subproject commit 7cea6805534fbaa59929a572616663b4b85212a5 +Subproject commit d484b0f11349642ec923f077cb03012372354321 diff --git a/source/_includes/site/head.html b/source/_includes/site/head.html index de9daf226ed..4f550a4c871 100644 --- a/source/_includes/site/head.html +++ b/source/_includes/site/head.html @@ -1,5 +1,6 @@ -{% if page.description %}{% capture fb_description %}{{ page.description }}{% endcapture %}{% else %}{% capture fb_description %}{{ content | raw_content }}{% endcapture %}{% endif %} +{% capture fb_description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} {% capture description %}{% if page.description %}{{ page.description }}{% elsif site.description %}{{ site.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} +{% capture social_image %}{% if page.og_image %}{{ page.og_image | prepend: site.url }}{% else %}https://home-assistant.io/images/home-assistant-logo-2164x2164.png{% endif %}{% endcapture %} @@ -22,13 +23,13 @@ - + - + - +