Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Generate paged html fragments for `Index`, `Category` and `Tag` pages, let `Hexo` support elegant ajax pagination.

Resources

License

Packages

No packages published
You can’t perform that action at this time.