From 7ad8d79f93793129f4d3a99ffba470d5776f9433 Mon Sep 17 00:00:00 2001 From: Michael Rose 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 e0cd6ecd..dfc713a4 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -179,18 +179,20 @@ {% 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 e0cd6ecd..dfc713a4 100644 --- a/docs/_includes/author-profile.html +++ b/docs/_includes/author-profile.html @@ -179,18 +179,20 @@ {% 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 8ecfaa75..16744e36 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -109,7 +109,6 @@ author: youtube : # "https://youtube.com/c/MichaelRoseDesign" - # Reading Files include: - .htaccess