jekyllt / jasper

Full-featured Jekyll port of Ghost's default theme Casper 👻
https://jekyller.github.io/jasper/
MIT License
581 stars 348 forks source link

Improve page styling condition expression #28

Closed hieusensei closed 8 years ago

hieusensei commented 8 years ago

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.

biomadeira commented 8 years ago

That makes sense! Thanks @hieusensei