If post.published?
post.published?
.post / Post stuff
Otherwise
.post.gray / Post stuff
I\'ve implemente
Updated Ruby syntax:
.post{class: ("gray" unless post.published?)}