Don't prepend author.avatar
paths with /
when path contains ://
This commit is contained in:
parent
9ae9d32463
commit
7700d3b8ed
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<div class="author__avatar">
|
<div class="author__avatar">
|
||||||
{% if author.avatar contains "://" %}
|
{% if author.avatar contains "://" %}
|
||||||
<img src="{{ author.avatar | prepend: "/" }}" alt="{{ author.name }}">
|
<img src="{{ author.avatar }}" alt="{{ author.name }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ author.avatar | prepend: "/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
|
<img src="{{ author.avatar | prepend: "/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue