Added new function to create recent posts API

The current list.json file only shows all posts from oldest to newest.

I have created a new function to list the newest posts. The number of posts shown is taken from the hexo setting hexo.config['api_posts_per_page'] or defaults to 10