hexo-generator-recent
Hexo plugin to generate a list of recent articles in JSON. Suitable for consumption by APIs or feeds.
Unmaintained
Please open an issue if you would like to take ownership.
Installation
npm i --save hexo-generator-recent
Usage
Just generate as usual
Using the default settings, the recent.json
will contain the most recent 5
posts and list all keys
Configuration
an example. would be included in _config.yml
generatorRecent: file: recent.json number: 5 sort: -date fields: # set to true for all fields (default) - title - slug - date - tags