Refactored home page generation
Now only display latest 3 posts on home page