1.0.0 • Published 3 years ago

hexo-generator-latest2json v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

hexo-generator-latest2json

NPM version

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