Add "published?" to Liquid output for pages and posts.

Fixes #2274.