mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-30 04:10:45 +00:00
Don't prepend author.avatar
paths with /
when path contains ://
This commit is contained in:
parent
9ae9d32463
commit
7700d3b8ed
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user