hexo-generator-index-sticky
v0.3.0
Published
Index generator for Hexo.add pin function, fork from hexo-generator-index
Downloads
8
Readme
hexo-generator-index-sticky
增加置顶功能
USAGE
在文章的开头设置中增加一个sticky
参数用来置顶,数字越大越高
---
title: example
sticky: 100
---
采用sticky关键词是因为这个在next主题中已经定义了置顶样式,因此可以直接拿来使用
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