The condition expression for checking current page is prone to error. If user creates a post with the word page in its slug, Jekyll will apply a wrong styling to that post.
A better method is to check for the paginator's current page number. If it's larger than 1, then the user is on page2 or greater. If not, then the user must be on the home page.
The condition expression for checking current page is prone to error. If user creates a post with the word
page
in its slug, Jekyll will apply a wrong styling to that post.A better method is to check for the paginator's current page number. If it's larger than 1, then the user is on
page2
or greater. If not, then the user must be on the home page.