Don't prepend author.avatar paths with / when path contains ://

This commit is contained in:
Michael Rose 2016-09-26 12:12:21 -04:00
parent 9ae9d32463
commit 7700d3b8ed

View file

@ -8,7 +8,7 @@
<div class="author__avatar">
{% if author.avatar contains "://" %}
<img src="{{ author.avatar | prepend: "/" }}" alt="{{ author.name }}">
<img src="{{ author.avatar }}" alt="{{ author.name }}">
{% else %}
<img src="{{ author.avatar | prepend: "/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
{% endif %}