Adds attribute readers for post and page.

Use case: plugins that want to duplicate post or page content can more easily access this value

This is the same as #1908 but on the Jekyll repo since the previous fork was deleted.