Iterate over collection

  • _config.yml
      collections:
      foo:
          output: true
    
  • _foo/bars/*.md
  • index.md
      ---
      ---
      {% for item in site.foo.bars %}
          {{ item.title }}
      {% endfor %}