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 %}