mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-27 10:50:30 +00:00
Rename variables to stay consistent with naming convention
This commit is contained in:
parent
3663ba897a
commit
b642972d82
@ -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=
|
||||||
|
Loading…
Reference in New Issue
Block a user