0.2.2 • Published 12 months ago

hexo-generator-index-pin-top-better v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

hexo-generator-index-pin-top-better

Build Status NPM version Coverage Status

Index generator for Hexo. Pin top version, but normal posts are sorted by updated time, and posts which are pinned to top are sorted in ascending order by number.

Installation

$ npm uninstall hexo-generator-index --save
$ npm install hexo-generator-index-pin-top-better --save

Feautres

This version supports pin-top feature, you can add the top: True field to post's front-matter to pin it.

Options

Add or modify the following section to your root _config.yml file

index_generator:
  path: ''
  per_page: 10
  order_by: -date
  • path: Root path for your blogs index page. (default = '')
  • per_page: Posts displayed per page. (0 = disable pagination)
  • order_by: Posts order. (Order by date descending by default)

License

MIT

0.2.2

12 months ago