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 gallery = page.[include.id] %}
{% else %}
@@ -21,7 +19,7 @@
{% if img.url contains "://" %}
"{{ img.url }}"
{% else %}
"{{ img.url | prepend: "/" | prepend: base_path }}"
"{{ img.url | prepend: "/" | absolute_url }}"
{% endif %}
{% if img.title %}title="{{ img.title }}"{% endif %}
>
@@ -29,7 +27,7 @@
{% if img.image_path contains "://" %}
"{{ img.image_path }}"
{% else %}
"{{ img.image_path | prepend: "/" | prepend: base_path }}"
"{{ img.image_path | prepend: "/" | absolute_url }}"
{% endif %}
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
</a>
@@ -38,7 +36,7 @@
{% if img.image_path contains "://" %}
"{{ img.image_path }}"
{% else %}
"{{ img.image_path | prepend: "/" | prepend: base_path }}"
"{{ img.image_path | prepend: "/" | absolute_url }}"
{% endif %}
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
{% endif %}