From a41eee951664840abc3f5c01870ce67433220af7 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 21 Dec 2016 22:29:26 -0500 Subject: [PATCH] Add support for YouTube channel URLs in author sidebar - Close #716 --- _config.yml | 2 +- _includes/author-profile.html | 8 +++++++- test/_config.yml | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 3bb0c5a5..7cc5efd9 100644 --- a/_config.yml +++ b/_config.yml @@ -104,7 +104,7 @@ author: vine : weibo : xing : - youtube : + youtube : # "https://youtube.com/c/MichaelRoseDesign" # Reading Files diff --git a/_includes/author-profile.html b/_includes/author-profile.html index bb822345..e0cd6ecd 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -179,7 +179,13 @@ {% endif %} - {% if author.youtube %} + {% if author.youtube contains "://" %} +
  • + + YouTube + +
  • + {% else %}
  • YouTube diff --git a/test/_config.yml b/test/_config.yml index 8f614a4d..8ecfaa75 100644 --- a/test/_config.yml +++ b/test/_config.yml @@ -106,7 +106,8 @@ author: vine : weibo : xing : - youtube : + youtube : # "https://youtube.com/c/MichaelRoseDesign" + # Reading Files