{% assign counter = 0-%} {% assign frontpage_articles = (site.posts | where: "frontpage" , "true") -%} {% for page in frontpage_articles limit:10 -%} {% include post-list-article.html -%} {% assign counter = counter | plus:1 %} {% endfor -%}