Need blog banner to display on first listing page only
SOLVE
Hi I'm redesigning our blog https://www.g2planet.com/blog. I want the banner with a featured article to display only on the first listing page.
To build the banner I used a hubl template with the code below. I think the third if-statement (red text) is the problem. I'm new to HubL so I'm probably just doing something wrong with the syntax. Any help would be aprpreciated. Thanks!
{% if is_listing_view %}
{% if not simple_list_page %}
{% if (current_page_num, 1) %}
<div class="blog-hero">
<div class="centered large-stack">
<p class="featured-post">FEATURED POST</p>
<a href="https://www.g2planet.com/blog/harnessing-data-to-drive-automotive-events"><h1 class="featured-post-title">Harnessing Data to Drive Better Automotive Events</h1></a>
<img class="featured-post-image" src="https://www.g2planet.com/hubfs/Feature%20post%20test.png" alt="Read This Post"/>
</div>
</div>
{% endif %}
{% endif %}
{% endif %}