Looping through a sub collection or sub directory in a collection

@mmistakes Very cool. So this loops through all with grouped_by articles, stuffs them in an array. Then, it uses that assignment in the for loop. Thanks.

Also, nice to know that Collection docs don’t have the same support for categories as posts. Maybe in the future it will. :crossed_fingers:t4:

@rdyar Yes, that sounds like it could also reduce the amount of work stuffing the category or group in the defaults array. I assume you mean this:

_config.yml:

defaults:
  - scope:
      path: "" # an empty string here means all files in the project
    values:
      theme-color: ff3310

I guess the question would be how? Another item in the array?