I have an array of pages that can be accessed by using a for loop. Somehow trying to access elements by index is not working.
{% set posts = page.find('/blog').children.order('date', 'desc').slice(0, 3) %}
{% for post in posts %}
{{ post.url }} // this works fine
{% endfor %}
{{ posts[0].url }} // this does not work
Any suggestion on what I am doing wrong?