Improve gallery include variable names

This commit is contained in:
Michael Rose
2016-03-05 21:29:08 -05:00
parent 7c77274567
commit 8e838e1062
2 changed files with 38 additions and 38 deletions

@ -18,28 +18,28 @@
<figure class="{{ gallery-layout }}">
{% for img in gallery %}
{% if img.large %}
{% if img.url %}
<a href=
{% if img.large contains "http" %}
"{{ img.large }}"
{% if img.url contains "http" %}
"{{ img.url }}"
{% else %}
"{{ img.large | prepend: "/images/" | prepend: absurl }}"
"{{ img.url | prepend: "/images/" | prepend: absurl }}"
{% endif %}
>
<img src=
{% if img.thumb contains "http" %}
"{{ img.thumb }}"
{% if img.image_path contains "http" %}
"{{ img.image_path }}"
{% else %}
"{{ img.thumb | prepend: "/images/" | prepend: absurl }}"
"{{ img.image_path | prepend: "/images/" | prepend: absurl }}"
{% endif %}
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
</a>
{% else %}
<img src=
{% if img.thumb contains "http" %}
"{{ img.thumb }}"
{% if img.image_path contains "http" %}
"{{ img.image_path }}"
{% else %}
"{{ img.thumb | prepend: "/images/" | prepend: absurl }}"
"{{ img.image_path | prepend: "/images/" | prepend: absurl }}"
{% endif %}
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
{% endif %}