Skip to content

Commit

Permalink
Remove white space as it was causing issues with Markdown and parsing…
Browse files Browse the repository at this point in the history
… as code blocks

- Close mmistakes#279
  • Loading branch information
jluccisano committed Feb 12, 2017
1 parent 52a78dc commit 378265a
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions _includes/group-by-array
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@
{% assign __names = __names | sort %}
{% for name in __names | sort %}

<!-- If not equal to previous then it must be unique as sorted -->
{% unless name == previous %}
<!-- If not equal to previous then it must be unique as sorted -->
{% unless name == previous %}

<!-- Push to group_names -->
{% assign group_names = group_names | push: name %}
{% endunless %}
<!-- Push to group_names -->
{% assign group_names = group_names | push: name %}
{% endunless %}

{% assign previous = name %}
{% assign previous = name %}
{% endfor %}


<!-- group_items -->
{% for name in group_names %}

<!-- Collect if contains -->
{% assign __item = __empty_array %}
{% for __element in include.collection %}
{% if __element[include.field] contains name %}
{% assign __item = __item | push: __element %}
{% endif %}
{% endfor %}

<!-- Push to group_items -->
{% assign group_items = group_items | push: __item %}
<!-- Collect if contains -->
{% assign __item = __empty_array %}
{% for __element in include.collection %}
{% if __element[include.field] contains name %}
{% assign __item = __item | push: __element %}
{% endif %}
{% endfor %}

<!-- Push to group_items -->
{% assign group_items = group_items | push: __item %}
{% endfor %}

0 comments on commit 378265a

Please sign in to comment.