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

This commit is contained in:
Michael Rose
2016-06-03 11:59:19 -04:00
parent 8b793dde76
commit b3c0b79b92
8 changed files with 17 additions and 19 deletions

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 }}"