Add support for YouTube channel URLs in author sidebar

- Close #716
This commit is contained in:
Michael Rose 2016-12-21 22:29:26 -05:00
parent 1e661eb10f
commit a41eee9516
3 changed files with 10 additions and 3 deletions

View file

@ -104,7 +104,7 @@ author:
vine : vine :
weibo : weibo :
xing : xing :
youtube : youtube : # "https://youtube.com/c/MichaelRoseDesign"
# Reading Files # Reading Files

View file

@ -179,7 +179,13 @@
</li> </li>
{% endif %} {% endif %}
{% if author.youtube %} {% if author.youtube contains "://" %}
<li>
<a href="{{ author.youtube }}" itemprop="sameAs">
<i class="fa fa-fw fa-youtube-square" aria-hidden="true"></i> YouTube
</a>
</li>
{% else %}
<li> <li>
<a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs"> <a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs">
<i class="fa fa-fw fa-youtube-square" aria-hidden="true"></i> YouTube <i class="fa fa-fw fa-youtube-square" aria-hidden="true"></i> YouTube

View file

@ -106,7 +106,8 @@ author:
vine : vine :
weibo : weibo :
xing : xing :
youtube : youtube : # "https://youtube.com/c/MichaelRoseDesign"
# Reading Files # Reading Files