closes #4799 - Adds a prev_next helper method called by {{prev_post}} and {{next_post}} - Shows correct template for if and else blocks - Adds unit tests