diff --git a/_includes/template.html b/_includes/template.html index fb7b70f..9dcce5f 100644 --- a/_includes/template.html +++ b/_includes/template.html @@ -93,15 +93,37 @@ {%- for component in allSelections %} - {% if component.id == current_id %} - - {% for example in component.examples %} + {% if component.id == current_id %} + + {% assign grouped_examples = component.examples | group_by: "group" %} + + {% for group in grouped_examples %} + + {% if group.name != "" %} + + - {% endfor %} + {% else %} - {% endif %} + {% for example in group.items %} + + + + {% endfor %} + + {% endif %} + + {% endfor %} + + {% endif %} {%- endfor %} @@ -748,6 +770,10 @@