hexo-generator-index
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,0 +0,0 @@ /* global hexo */ |
@@ -9,4 +9,5 @@ 'use strict'; | ||
var paginationDir = config.pagination_dir || 'page'; | ||
var path = config.index_generator.path || ''; | ||
return pagination('', posts, { | ||
return pagination(path, posts, { | ||
perPage: config.index_generator.per_page, | ||
@@ -13,0 +14,0 @@ layout: ['index', 'archive'], |
{ | ||
"name": "hexo-generator-index", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Index generator for Hexo.", | ||
@@ -31,5 +31,7 @@ "main": "index", | ||
"eslint": "^1.8.0", | ||
"eslint-config-hexo": "^1.0.2", | ||
"hexo": "^3.0.0", | ||
"istanbul": "^0.4.0", | ||
"jscs": "^2.5.0", | ||
"jscs-preset-hexo": "^1.0.1", | ||
"mocha": "^2.0.1" | ||
@@ -36,0 +38,0 @@ }, |
@@ -17,2 +17,3 @@ # hexo-generator-index | ||
index_generator: | ||
path: '' | ||
per_page: 10 | ||
@@ -22,2 +23,3 @@ order_by: -date | ||
- **path**: Root path for your blogs index page. (default = '') | ||
- **per_page**: Posts displayed per page. (0 = disable pagination) | ||
@@ -24,0 +26,0 @@ - **order_by**: Posts order. (Order by date descending by default) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
24
30
4019
8
1