Rename variables to stay consistent with naming convention

This commit is contained in:
Michael Rose 2016-03-23 16:31:30 -04:00
parent 3663ba897a
commit b642972d82

View File

@ -6,17 +6,17 @@
{% assign gallery = page.gallery %} {% assign gallery = page.gallery %}
{% endif %} {% endif %}
{% capture gallery-size %}{{ gallery | size }}{% endcapture %} {% capture gallery_size %}{{ gallery | size }}{% endcapture %}
{% if gallery-size == '2' %} {% if gallery_size == '2' %}
{% assign gallery-layout = 'half' %} {% assign gallery_layout = 'half' %}
{% elsif gallery-size >= '3' %} {% elsif gallery_size >= '3' %}
{% assign gallery-layout = 'third' %} {% assign gallery_layout = 'third' %}
{% else %} {% else %}
{% assign gallery-layout = '' %} {% assign gallery_layout = '' %}
{% endif %} {% endif %}
<figure class="{{ gallery-layout }} {{ include.class }}"> <figure class="{{ gallery_layout }} {{ include.class }}">
{% for img in gallery %} {% for img in gallery %}
{% if img.url %} {% if img.url %}
<a href= <a href=