Skip to content
Branch: master
Go to file
Code
This branch is 13 commits ahead, 44 commits behind hexojs:master.

Latest commit

Files

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

README.md

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

You can’t perform that action at this time.