39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
# hexo-generator-archive
|
|
|
|
[](https://github.com/hexojs/hexo-generator-archive/actions?query=workflow%3ATester)
|
|
[](https://www.npmjs.com/package/hexo-generator-archive)
|
|
[](https://coveralls.io/r/hexojs/hexo-generator-archive?branch=master)
|
|
|
|
Archive generator for [Hexo].
|
|
|
|
## Installation
|
|
|
|
``` bash
|
|
$ npm install hexo-generator-archive --save
|
|
```
|
|
|
|
## Options
|
|
|
|
``` yaml
|
|
archive_generator:
|
|
enabled: true
|
|
per_page: 10
|
|
yearly: true
|
|
monthly: true
|
|
daily: false
|
|
order_by: -date
|
|
```
|
|
|
|
- **enabled**: The default value is **true**, set to **false** if you do not want to enable the plugin
|
|
- **per_page**: Posts displayed per page. (**0** = disable pagination)
|
|
- **yearly**: Generate yearly archive.
|
|
- **monthly**: Generate monthly archive.
|
|
- **daily**: Generate daily archive.
|
|
- **order_by**: Posts order. (Order by date descending by default)
|
|
|
|
## License
|
|
|
|
MIT
|
|
|
|
[Hexo]: https://hexo.io/
|