make post.contents available in locals