Replace base_path with absolute_url filter where possible

This commit is contained in:
Michael Rose
2016-10-06 15:40:30 -04:00
parent 7700d3b8ed
commit c3c0fc3f51
24 changed files with 50 additions and 94 deletions

View File

@ -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>