changing page-n to index-n
removed unused function
changing articles to posts