added check to make sure comments are enabled before displaying the comment link on posts