Replace base_path with absolute_url
filter where possible
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
{% include base_path %}
|
||||
|
||||
{% if include.id %}
|
||||
{% assign feature_row = page.[include.id] %}
|
||||
{% else %}
|
||||
@ -13,7 +11,7 @@
|
||||
{% if f.url contains "://" %}
|
||||
{% capture f_url %}{{ f.url }}{% endcapture %}
|
||||
{% else %}
|
||||
{% capture f_url %}{{ f.url | prepend: "/" | prepend: base_path }}{% endcapture %}
|
||||
{% capture f_url %}{{ f.url | prepend: "/" | absolute_url }}{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
<div class="feature__item{% if include.type %}--{{ include.type }}{% endif %}">
|
||||
@ -24,7 +22,7 @@
|
||||
{% if f.image_path contains "://" %}
|
||||
"{{ f.image_path }}"
|
||||
{% else %}
|
||||
"{{ f.image_path | prepend: "/" | prepend: base_path }}"
|
||||
"{{ f.image_path | prepend: "/" | absolute_url }}"
|
||||
{% endif %}
|
||||
alt="{% if f.alt %}{{ f.alt }}{% endif %}">
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user