Don't prepend author.avatar
paths with /
when path contains ://
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user