Replace contains "http" with contains "://"

This commit is contained in:
Michael Rose
2016-06-03 15:06:48 -04:00
parent 3e11f72176
commit 0eec6f7611
8 changed files with 17 additions and 19 deletions
+3 -3
View File
@@ -20,7 +20,7 @@
{% for img in gallery %}
{% if img.url %}
<a href=
{% if img.url contains "http" %}
{% if img.url contains "://" %}
"{{ img.url }}"
{% else %}
"{{ img.url | prepend: "/images/" | prepend: base_path }}"
@@ -28,7 +28,7 @@
{% if img.title %}title="{{ img.title }}"{% endif %}
>
<img src=
{% if img.image_path contains "http" %}
{% if img.image_path contains "://" %}
"{{ img.image_path }}"
{% else %}
"{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
@@ -37,7 +37,7 @@
</a>
{% else %}
<img src=
{% if img.image_path contains "http" %}
{% if img.image_path contains "://" %}
"{{ img.image_path }}"
{% else %}
"{{ img.image_path | prepend: "/images/" | prepend: base_path }}"