hexo-generator-latest2json
v1.0.0
Published
build a latest post list to a json file
Downloads
2
Readme
hexo-generator-latest2json
build a latest post list in a json file. that you can use it for other platforms.
Installation
npm i hexo-generator-latest2json -S
Oportions
Add or modify the following sections to you root _config.yml file:
latest2json:
number: 10
order_by: '-date'
path: 'latest2json'
fields:
- title
- date
- path
number: how many number posts will be generated into the json file
- default: 10
order_by Post order
- default: date descending
path the output path for the json file
- default: 'latest.json'.
fields which fields you want to get from ths post
- default: title, date, path
License
MIT