adding else if there are not posts
adding .idea to gitignore