Different pagination count for first blog page

I’m trying to have the first page of the blog show 13 articles with subsequent pages showing 12. The reason is that I will have a featured post tile on the first page only which spans 2 columns of tiles – if there are 13 tiles in a two-column grid on the subsequent pages, there will be a blank tile in the last row.

Anyhow, I’m attempting to use variables to achieve this but Shopify rejects the following code with 'Unknown tag ‘num_articles’. Is there any way around this, or a different solution I’m not thinking of?

{% assign num_articles = 13 %}

{% if paginate.current_page > 1 %}
  {% num_articles = 12 %}
{% endif %} 

{% paginate blog.articles by num_articles %}
 // Output articles...
{% endpaginate %}

Hi @lorier

Since each theme has its own element that is no similar to other, so we highly recommend you to contact your theme provider. Their developer will help you take a look and make need adjustment with the coding.

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any questions :slightly_smiling_face: