hexo-generator-tag
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -6,5 +6,5 @@ 'use strict'; | ||
hexo.config.tag_generator = assign({ | ||
per_page: hexo.config.per_page | ||
per_page: hexo.config.per_page || 10 | ||
}, hexo.config.tag_generator); | ||
hexo.extend.generator.register('tag', require('./lib/generator')); |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var perPage = config.tag_generator.per_page; | ||
var paginationDir = config.pagination_dir || 'page'; | ||
@@ -17,2 +18,3 @@ return locals.tags.reduce(function(result, tag){ | ||
layout: ['tag', 'archive', 'index'], | ||
format: paginationDir + '/%d/', | ||
data: { | ||
@@ -19,0 +21,0 @@ tag: tag.name |
{ | ||
"name": "hexo-generator-tag", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Tag generator for Hexo.", | ||
@@ -5,0 +5,0 @@ "main": "index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3534
24