Skip to content

buxuku/hexo-generator-latest2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

build a latest post list to a json file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published