From 32e84a39eb786c5303d0fc8592290b126e410486 Mon Sep 17 00:00:00 2001 From: Maximilian Held Date: Mon, 10 Mar 2014 23:38:47 +0100 Subject: [PATCH] make twitter cards accept hotlinked images --- _config.yml | 2 +- _includes/_author-bio.html | 8 ++++++- _includes/_head.html | 47 ++++++++++++++++++++++++++++---------- 3 files changed, 43 insertions(+), 14 deletions(-) diff --git a/_config.yml b/_config.yml index f7651bf..59ea318 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,7 @@ title: Site Title description: Describe your website. # Your site's domain goes here. Leave localhost server or blank when working locally. -url: #http://localhost:4000 +url: http://localhost:4000 # Owner/author information owner: diff --git a/_includes/_author-bio.html b/_includes/_author-bio.html index ffbb8c9..3378a35 100644 --- a/_includes/_author-bio.html +++ b/_includes/_author-bio.html @@ -1,4 +1,10 @@ -{{ site.owner.name }} bio photo +{% if site.owner.avatar contains 'http://' %} + {{ site.owner.name }} bio photo +{% elsif site.owner.avatar contains 'https://' %} + {{ site.owner.name }} bio photo +{% else %} + {{ site.owner.name }} bio photo +{% endif %}

{{ site.owner.name }}

{{ site.owner.bio }}

{% if site.owner.twitter %} Twitter{% endif %} diff --git a/_includes/_head.html b/_includes/_head.html index 22362d4..54fd8cc 100644 --- a/_includes/_head.html +++ b/_includes/_head.html @@ -3,20 +3,43 @@ {% if site.owner.twitter %} -{% if page.image.feature %} - + {% else %} - "{{ site.url }}/images/{{ page.image.feature }}"> + + {% endif %} -{% else %} -{% endif %} - - -{% endif %} + + + +{% endif %} -- 2.45.2