Skip to content

Commit

Permalink
Fixing YouTube URL generation in author-profile.html
Browse files Browse the repository at this point in the history
YouTube does not use /user/username at the moment. If a person has a YouTube handle, the URL is:
www.youtube.com/@HANDLE

The fix is very minimal but I needed it for my website so I've also added it here.
  • Loading branch information
edbrito-swdev authored Sep 11, 2024
1 parent 6d5d9a7 commit 803166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/author-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h3 class="author__name">{{ author.name }}</h3>
<li><a href="https://www.xing.com/profile/{{ author.xing }}"><i class="fab fa-fw fa-xing icon-pad-right" aria-hidden="true"></i>XING</a></li>
{% endif %}
{% if author.youtube %}
<li><a href="https://www.youtube.com/user/{{ author.youtube }}"><i class="fab fa-fw fa-youtube icon-pad-right" aria-hidden="true"></i>YouTube</a></li>
<li><a href="https://www.youtube.com/@{{ author.youtube }}"><i class="fab fa-fw fa-youtube icon-pad-right" aria-hidden="true"></i>YouTube</a></li>
{% endif %}
{% if author.zhihu %}
<li><a href="{{ author.zhihu }}"><i class="fab fa-fw fa-zhihu icon-pad-right" aria-hidden="true"></i>Zhihu</a></li>
Expand Down

0 comments on commit 803166b

Please sign in to comment.