|
42 | 42 | </div> |
43 | 43 |
|
44 | 44 | <divclass="section-title">What's left: Built-in Items</div> |
45 | | - {% assign previous_builtin = "" %} |
46 | | - {% comment %}<div><ol><!-- this makes prettier not crash -->{% endcomment %} |
47 | | - {% for item in site.data.whats_left.builtin_items %} |
48 | | - {% if item.builtin != previous_builtin %} |
49 | | - {% if previous_builtin != "" %} |
50 | | -</ol></div> |
51 | | - {% endif %} |
52 | | -<h4>{{ item.builtin }}</h4> |
53 | | -<divclass="column-count-is-2"><ol> |
54 | | - {% endif %} |
55 | | -<liclass="word-wrap-anywhere"><code>{{ item.name }}</code> {% if item.is_inherited %}{{ item.is_inherited }}{% endif %}</li> |
56 | | - {% assign previous_builtin = item.builtin %} |
| 45 | + {% assign items_by_builtin = site.data.whats_left.builtin_items | group_by: "builtin" %} |
| 46 | + {% for group in items_by_builtin %} |
| 47 | +<h4>{{ group.name }}</h4> |
| 48 | +<divclass="column-count-is-2"> |
| 49 | +<ol> |
| 50 | + {% for item in group.items %} |
| 51 | +<liclass="word-wrap-anywhere"><code>{{ item.name }}</code> {% if item.is_inherited %}{{ item.is_inherited }}{% endif %}</li> |
| 52 | + {% endfor %} |
| 53 | +</ol> |
| 54 | +</div> |
57 | 55 | {% endfor %} |
58 | | -</ol></div> |
59 | 56 | </div> |