La fonction de suggestion automatique permet d'affiner rapidement votre recherche en suggérant des correspondances possibles au fur et à mesure de la frappe.
I have a section of code that inserts specific global groups between posts on the blog listing page at specific intervals. Due to there not always being enough posts on the last page, this sometimes causes issues. For this reason, I am trying to write a statement that says execute this code if it is not the last listing page. Below I have what I came up with in red, but it does not seem to be working. Any suggestions on how I can change this if statement to make it work?
{% if current_page_num != last_page_num %}
{% if loop.index == 1 %}
<div class="popular-posts">
{% include "/generated_global_groups/12345671030.html" %}
</div>
{% endif %}
{% if loop.index == 4 %}
<div class="sub-to-blog-tile">
{% include "/generated_global_groups/12345677193.html" %}
</div>
{% endif %}
{% if loop.index == 9 %}
<div class="sub-to-blog-tile">
{% include "/generated_global_groups12345676879.html" %}
</div>
{% endif %}
{% endif %}