Replace base_path with absolute_url filter where possible
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
{% include base_path %}
|
||||
|
||||
{% if page.author_profile or layout.author_profile or page.sidebar %}
|
||||
<div class="sidebar sticky">
|
||||
{% if page.author_profile or layout.author_profile %}{% include author-profile.html %}{% endif %}
|
||||
@@ -10,7 +8,7 @@
|
||||
{% if s.image contains "://" %}
|
||||
"{{ s.image }}"
|
||||
{% else %}
|
||||
"{{ s.image | prepend: "/" | prepend: base_path }}"
|
||||
"{{ s.image | prepend: "/" | absolute_url }}"
|
||||
{% endif %}
|
||||
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user