Apply specific styling to the first page of your HubSpot blog listings

Technical Difficulty: Advanced
Written by Stephanie O'Gay Garcia
First Published: October 12, 2019
Last Updated: October 12, 2019

⚠️ Note that this post hasn't been updated for at least a year and the information may be outdated, proceed with caution! (Last updated: October 12, 2019)

Sometimes you might just want to apply styling to the first page in your blog listings, such as a hero banner or featured posts.

To do this, you can use the {% raw %}current_page_num blog variable, like this: {% if current_page_num == 1 %} {# Code for content specific to your first page #} {% endif %}
You can add this code into your blog listing template, on a custom module used on your listings template or in the Wrapping HTML on a module or group: