{% for post in data.posts[0:number_of_posts|default(5)] %} {{ post.title }} {% endfor %}