Collections datas

Render tag with the for parameter, using collections for an array of objects.

output

Title: The intruder

Content: Got inside the house

Author: Bastien Vacherand

Title: The Shawshank Redemption

Content: Two imprisoned

Author: Stephen King

Title: When the sun goes down

Content: That's when the fun begins

Author: Mickael Jackson

input

{% render 'components/card-collections' for collections.objects as item %}

card.liquid

<article>
    <h4>Title: {{ item.data.title }}</h4>
    <p>Content: {{ item.data.content}}</p>
    <p>Author: {{ item.data.author }}</p>
</article>

files with "tags: objects"

---
title: The intruder
content: Got inside the house
author: Bastien Vacherand
---