jekyll Collections Looping Through All Items in a Collection


Example

Given an 'albums' collection, you can loop through and output each item:

{% for album in site.albums %}
    {{ album.content }}
{% endfor %}

Any custom front matter variables are also available within the loop.

{% for album in site.albums %}
    {{ album.title }}
    {{ album.content }}
{% endfor %}