Post#published is not available in newer Jekyll versions, fixes #25

Post#published is not available in Jekyll since this commit https://github.com/jekyll/jekyll/commit/09c6ff4f9c9568c103788e2d7f0c9804c7706492
Don't use parentheses around the condition of an `if`.<br>Space inside parentheses detected.