0.3.0 • Published 6 years ago

hexo-generator-index-sticky v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

hexo-generator-index-sticky

增加置顶功能

USAGE

在文章的开头设置中增加一个sticky参数用来置顶,数字越大越高

---
title: example
sticky: 100
---

采用sticky关键词是因为这个在next主题中已经定义了置顶样式,因此可以直接拿来使用


Build Status NPM version Coverage Status

Index generator for Hexo.

Installation

$ npm install hexo-generator-index --save

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