update posts loop on index.html and post-index.html layout