Fix for categories not displayed

Currently, even if categories are mentioned in markdown post, it is not displayed after site generation. This is because, the if condition should be on page.categories & not on post.categories