1.9.3. Common フィルター (up)

1.9.3.1. group_by フィルター

何らかのキーでコレクションをグループ化します (例: サービスでアプリケーションをグループ化する)。

{% assign grouped = applications | group_by: 'service' %}
{% for group in grouped %}
  Service: {{ group[0 }}
  {% for app in group[1] %}
    Application: {{ app.name }}
  {% endfor %}
{% endfor %}