adding logic to previous/next article links
adding foreach loop to nav