From 3d65bd2427355b90d5eed17b2ffeebea6ef601df Mon Sep 17 00:00:00 2001 From: Maximilian Held Date: Mon, 10 Mar 2014 21:20:28 +0100 Subject: [PATCH 1/4] Make twitter cards accept hotlinked images --- _includes/_head.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_includes/_head.html b/_includes/_head.html index 399ea5bc..22362d4d 100644 --- a/_includes/_head.html +++ b/_includes/_head.html @@ -4,7 +4,14 @@ {% if site.owner.twitter %} {% if page.image.feature %} - + + {% endif %} {% else %} {% endif %} From 32e84a39eb786c5303d0fc8592290b126e410486 Mon Sep 17 00:00:00 2001 From: Maximilian Held Date: Mon, 10 Mar 2014 23:38:47 +0100 Subject: [PATCH 2/4] 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 f7651bfb..59ea3183 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 ffbb8c9b..3378a352 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 22362d4d..54fd8cc6 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 %} From 8cb3893856f6f7838fe13a9554eafdbefa02cb5b Mon Sep 17 00:00:00 2001 From: Maximilian Held Date: Tue, 11 Mar 2014 00:42:54 +0100 Subject: [PATCH 3/4] make feature images accept hotlinks --- _layouts/home.html | 20 ++++++++++++++++---- _layouts/page.html | 20 ++++++++++++++++---- _layouts/post-index.html | 20 ++++++++++++++++---- _layouts/post.html | 20 ++++++++++++++++---- about.md | 2 +- 5 files changed, 65 insertions(+), 17 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index f889e35f..bddda197 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -13,10 +13,22 @@ {% include _navigation.html %} -{% if page.image.feature %}
- {{ page.title }} feature image - {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %} -
{% endif %} +{% if page.image.feature %} +
+ {{ page.title }} feature image + {% if page.image.credit %} + Photo Credit: {{ page.image.credit }} + {% endif %} +
+{% endif %}