Skip to content

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

License

Notifications You must be signed in to change notification settings

aispin/hexo-generator-fragments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published