Filter or group a collection in Liquid
问题 For a simple personal Jekyll blog, I want to group my site.posts by an attribute on post , lang (language). This is either "en", "nl" or nil. I then want to render two lists of posts. Currently I have: <section lang="nl"> <h2>Nederlandse Artikelen</h2> <ul class="posts"> {% for post in site.posts limit:50 %} {% if post.lang == "nl" %} {% include li_for_post_with_date.yml %} {% endif %} {% endfor %} </ul> <a href="archief.html">Archief »</a> </section> <section lang="en"> <h2>English Articles<