From 238d3566eba9675ad88be633ee2180eead10a023 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=CE=9C=CE=B1=CE=BA=CE=B1=CF=81=CF=8C=CE=BD=CE=B9=CE=B1=20?=
=?UTF-8?q?=CE=BC=CE=B5?= <32320229+makaroniame@users.noreply.github.com>
Date: Wed, 21 Dec 2016 22:43:21 -0500
Subject: [PATCH] Fix `author.youtube` conditional in author sidebar
---
_includes/author-profile.html | 26 ++++++++++++++------------
docs/_includes/author-profile.html | 26 ++++++++++++++------------
test/_config.yml | 1 -
3 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/_includes/author-profile.html b/_includes/author-profile.html
index e0cd6ecde51d..dfc713a4fceb 100644
--- a/_includes/author-profile.html
+++ b/_includes/author-profile.html
@@ -179,18 +179,20 @@
{{ author.name }}
{% endif %}
- {% if author.youtube contains "://" %}
-
-
- YouTube
-
-
- {% else %}
-
-
- YouTube
-
-
+ {% if author.youtube %}
+ {% if author.youtube contains "://" %}
+
+
+ YouTube
+
+
+ {% else author.youtube %}
+
+
+ YouTube
+
+
+ {% endif %}
{% endif %}
{% if author.soundcloud %}
diff --git a/docs/_includes/author-profile.html b/docs/_includes/author-profile.html
index e0cd6ecde51d..dfc713a4fceb 100644
--- a/docs/_includes/author-profile.html
+++ b/docs/_includes/author-profile.html
@@ -179,18 +179,20 @@ {{ author.name }}
{% endif %}
- {% if author.youtube contains "://" %}
-
-
- YouTube
-
-
- {% else %}
-
-
- YouTube
-
-
+ {% if author.youtube %}
+ {% if author.youtube contains "://" %}
+
+
+ YouTube
+
+
+ {% else author.youtube %}
+
+
+ YouTube
+
+
+ {% endif %}
{% endif %}
{% if author.soundcloud %}
diff --git a/test/_config.yml b/test/_config.yml
index 8ecfaa7509c3..16744e36b2dc 100644
--- a/test/_config.yml
+++ b/test/_config.yml
@@ -109,7 +109,6 @@ author:
youtube : # "https://youtube.com/c/MichaelRoseDesign"
-
# Reading Files
include:
- .htaccess