meetwudi / hexo-generator-api

Generate json api for your awesome hexo site
28 stars 6 forks source link

Added new function to create recent posts API #3

Closed nxfifteen closed 9 years ago

nxfifteen commented 9 years ago

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

meetwudi commented 9 years ago

Awesome, thanks!