add post content type
refactor menu code into navbar snippet