diff --git a/scripts/helper/uk-paginator.js b/scripts/helper/uk-paginator.js new file mode 100644 index 0000000..af09fa1 --- /dev/null +++ b/scripts/helper/uk-paginator.js @@ -0,0 +1,61 @@ +hexo.extend.helper.register("uk_paginator", function(option) { + const options = Object.assign({ + base: "/", + pagePath: "page/%d/", + total: 1, + current: 1, + space: "...", + sideSize: 5, + midSize: 10, + mainClasses: [], + itemClasses: [], + }, option); + console.dir(options); + + let pageStructure = []; + pageStructure.push(``); + + return pageStructure.join("\n"); +}); \ No newline at end of file