{% assign articles = site.articles %}
{% assign articles_size = articles | size %}
{% if articles_size > 0 %}
{% paginate articles per 10 %}
{% for article in paginate.collection %}
{% render ‘article’ | article: article %}
{% endfor %}
{% render ‘article’ | article: article %}
{% endfor %}
{% endpaginate %}
{% endif %}