https://github.com/aispin/hexo-generator-fragments
Generate paged html fragments for `Index`, `Category` and `Tag` pages, let `Hexo` support elegant ajax pagination.
https://github.com/aispin/hexo-generator-fragments
Last synced: 24 days ago
JSON representation
Generate paged html fragments for `Index`, `Category` and `Tag` pages, let `Hexo` support elegant ajax pagination.
- Host: GitHub
- URL: https://github.com/aispin/hexo-generator-fragments
- Owner: mamboer
- License: mit
- Created: 2016-07-12T08:19:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T08:06:12.000Z (almost 9 years ago)
- Last Synced: 2024-09-17T17:22:08.669Z (8 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-generator-fragments
[](https://travis-ci.org/mamboer/hexo-generator-fragments) [](http://badge.fury.io/js/hexo-generator-fragments) [](https://coveralls.io/github/mamboer/hexo-generator-fragments?branch=master)
Generate paged html fragments for Index, Category and Tag pages, let [Hexo](https://github.com/hexojs/hexo) support elegant ajax pagination.
## Installation
``` bash
$ npm install hexo-generator-fragments --save
```## Options
``` yaml
fragments_generator:
dir: 'fragments',
index_layout: 'fragments',
cate_layout: 'fragments',
tag_layout: 'fragments',
per_page: 10,
order_by: '-date'
```- **dir**: where the generated fragments should be put
- **index_layout**: Index layout file used by the generator
- **cate_layout**: Category layout file used by the generator
- **tag_layout**: Tag layout file used by the generator
- **per_page**: Posts displayed per page. (0 = disable pagination)
- **order_by**: Posts order. (Order by date descending by default)## License
MIT
[Aotu.io]: https://aotu.io/