Add support for YouTube channel URLs in /docs
author sidebar
This commit is contained in:
parent
a41eee9516
commit
7e1f1539e3
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue