From 8c7ee28d6c9904aa240cc37c146edbcd5020811b Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Fri, 16 Sep 2016 14:59:55 -0700 Subject: [PATCH] remove | sort from for loops, avoid new(?) liquid warning --- appendix.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appendix.md b/appendix.md index b961268..a28f3be 100644 --- a/appendix.md +++ b/appendix.md @@ -25,7 +25,8 @@ If you're here to choose a license, **[start from the home page](/)** to see a f {% endfor %} {% endfor %} -{% for license in site.licenses | sort: 'path' %} +{% assign licenses = site.licenses sort: "path" %} +{% for license in licenses %} {{ license.title }} {% assign seen_tags = '' %} {% 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
{{ rule_obj.label }}
{% capture seen_tags %}{{ seen_tags | append:req }}{% endcapture %} {% for t in types %} - {% for r in site.data.rules[t] | sort: "label" %} + {% assign rs = site.data.rules[t] | sort: "label" %} + {% for r in rs %} {% if r.tag == req %}
{{ r.description }}
{% endif %}