Generate paged html fragments for `Index`, `Category` and `Tag` pages, let `Hexo` support elegant ajax pagination.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit b683c38 Jul 14, 2016
Permalink
Failed to load latest commit information.
lib init Jul 14, 2016
test init Jul 14, 2016
.eslintignore init Jul 14, 2016
.eslintrc init Jul 14, 2016
.gitignore init Jul 14, 2016
.jscsrc init Jul 14, 2016
.npmignore init Jul 14, 2016
.travis.yml init Jul 14, 2016
LICENSE init Jul 14, 2016
README.md update coveralls badage Jul 14, 2016
index.js init Jul 14, 2016
package.json update jscs Jul 14, 2016

README.md

hexo-generator-fragments

Build Status NPM version Coverage Status

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