hexo-generator-fragments
v1.0.0
Published
Generate paged html fragments for Index, Category and Tag pages, let Hexo support elegant ajax pagination.
Downloads
3
Readme
hexo-generator-fragments
Generate paged html fragments for Index, Category and Tag pages, let Hexo support elegant ajax pagination.
Installation
$ npm install hexo-generator-fragments --save
Options
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