Add of a function getLastPost for the front page