Detect if the currently opened document is a post

Detect if the currently opened document is a post