Skip to content

Commit da9e5de

Browse files
authored
Merge pull request #453 from github/for-no-pipe
remove | sort from for loops, avoid new(?) liquid warning
2 parents f5848e1 + 5003e97 commit da9e5de

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

appendix.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
2525
{% endfor %}
2626
{% endfor %}
2727
</tr>
28-
{% for license in site.licenses | sort: 'path' %}
28+
{% assign licenses = site.licenses sort: "path" %}
29+
{% for license in licenses %}
2930
<tr style="height: 3em"><th scope="row"><a href="{{ license.id }}">{{ license.title }}</a></th>
3031
{% assign seen_tags = '' %}
3132
{% for type in types %}
@@ -76,7 +77,8 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
7677
<dt id="{{ req }}">{{ rule_obj.label }}</dt>
7778
{% capture seen_tags %}{{ seen_tags | append:req }}{% endcapture %}
7879
{% for t in types %}
79-
{% for r in site.data.rules[t] | sort: "label" %}
80+
{% assign rs = site.data.rules[t] | sort: "label" %}
81+
{% for r in rs %}
8082
{% if r.tag == req %}
8183
<dd class="license-{{t}}"><span class="license-sprite"></span> {{ r.description }}</dd>
8284
{% endif %}

0 commit comments

Comments
 (0)