fix:去除调试代码。

This commit is contained in:
徐涛 2021-05-17 15:53:18 +08:00
parent 8ebbf2141d
commit deb251c6e3

View File

@ -11,11 +11,8 @@ hexo.extend.helper.register("uk_paginator", function(option) {
itemClasses: [],
}, option);
const pagePathReplaced = options.pagePath.replace('/', '\/').replace('%d', '\\d+');
console.log(pagePathReplaced);
const regPagePath = new RegExp(pagePathReplaced);
console.log(regPagePath);
options.base = options.base.replace(regPagePath, '');
console.dir(options);
let pageStructure = [];
pageStructure.push(`<ul class="uk-pagination ${options.mainClasses.join(' ')}">`);