~xdavidwu/xdavidwu.link

5d2f24eba57738106a3a9c74224d73e28312288b — Michael Rose 7 years ago aba00c1
Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include

`sort` not allowed in `for` statements, remove it.
2 files changed, 3 insertions(+), 2 deletions(-)

M CHANGELOG.md
M _includes/group-by-array
M CHANGELOG.md => CHANGELOG.md +2 -1
@@ 16,8 16,9 @@
- Fix license URL in README file. [#1189](https://github.com/mmistakes/minimal-mistakes/pull/1189)
- Reduce amount of blank pages when printing in Chrome. [#1196](https://github.com/mmistakes/minimal-mistakes/issues/1196)
- Remove `#disqus_thread` duplicate  from `comments-providers/disqus.html` as it is already in `comments.html` include. [#1199](https://github.com/mmistakes/minimal-mistakes/issues/1199)
- Fix Liquid syntax esrrors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223)
- Fix Liquid syntax errors in `tag-list.html` and `category-list.html` includes by removing parenthesis in `assign`s. [#1223](https://github.com/mmistakes/minimal-mistakes/issues/1223)
- Fix Fix Liquid syntax error: "Expected id but found open_square in `"{{page.[include.id] }}"`" in `gallery` include.
- Fix Liquid syntax error: "Expected end_of_string but found pipe in `"name in __names | sort"`" in `group-by-array` include.

## [4.5.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.5.1)


M _includes/group-by-array => _includes/group-by-array +1 -1
@@ 18,7 18,7 @@

<!-- Uniq -->
{% assign __names =  __names | sort %}
{% for name in __names | sort %}
{% for name in __names %}

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