Add support for YouTube channel URLs in /docs author sidebar

This commit is contained in:
Michael Rose 2016-12-21 22:30:01 -05:00
parent a41eee9516
commit 7e1f1539e3

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