Skip to content

Index generator plus for Hexo, including new order attributes like top and updateDate.

License

Notifications You must be signed in to change notification settings

YuyingWu/hexo-generator-index-plus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-generator-index-plus

Index generator plus for [Hexo], which includes top and updateDate order rules.

[ !!! Important ] Please update your hexo-generator-index-plus to version 1.0.0+, cuz there is a bug for updateDate in beta versions under 1.0.0.

Installation

$ npm install hexo-generator-index-plus --save
  • remove default generator hexo-generator-index
  • update hexo-cli's assets dependencies, from hexo-generator-index to hexo-generator-index-plus, node_modules/hexo-cli/assets/package.json

Options

Default order rules: top descending -> updateDate descending -> date descending

index_generator_plus:
  path: ''
  per_page: 10
  • path: Root path for your blogs index page. (default = '')
  • per_page: Posts displayed per page. (0 = disable pagination)

[ more to do for the next version ]

  • order_by: descend(default) | ascend

Front-matter

title: Blog Log
tags:
  - blog
categories:
  - tech
date: 2015-04-23 00:35:45
updateDate: 2017-04-02 15:13:00
top: 1
  • top: No.1 priority for post order. The higher, the topper.
  • updateDate:anthoer date instead of create date, which you want to highlight.(No.2 priority)
  • date: create time of the post, the default comparing attribute.

License

MIT

About

Index generator plus for Hexo, including new order attributes like top and updateDate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%