Fix author.youtube conditional in author sidebar

This commit is contained in:
Michael Rose 2016-12-21 22:43:21 -05:00
parent 9fa1764d3e
commit 7ad8d79f93
3 changed files with 28 additions and 25 deletions

View file

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

View file

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

View file

@ -109,7 +109,6 @@ author:
youtube : # "https://youtube.com/c/MichaelRoseDesign" youtube : # "https://youtube.com/c/MichaelRoseDesign"
# Reading Files # Reading Files
include: include:
- .htaccess - .htaccess