diff --git a/scripts/helper/uk-paginator.js b/scripts/helper/uk-paginator.js
index 6d008b3..3c6541a 100644
--- a/scripts/helper/uk-paginator.js
+++ b/scripts/helper/uk-paginator.js
@@ -14,10 +14,12 @@ hexo.extend.helper.register("uk_paginator", function(option) {
let pageStructure = [];
pageStructure.push(`
`);
- if (options.total > 0 && options.current > 1) {
- pageStructure.push(` `);
+ if (options.total > 0 && options.current > 2) {
+ pageStructure.push(` `);
+ } else if (options.total > 0 && options.current === 2) {
+ pageStructure.push(` `);
} else {
- pageStructure.push(` `)
+ pageStructure.push(` `);
}
let pageGroups = [];
@@ -42,15 +44,17 @@ hexo.extend.helper.register("uk_paginator", function(option) {
}
if (page === options.current) {
pageStructure.push(`- ${page}
`)
+ } else if (page === 1) {
+ pageStructure.push(`- ${page}
`)
} else {
- pageStructure.push(`- ${page}
`)
+ pageStructure.push(`- ${page}
`)
}
});
if (options.total > 0 && options.current + 1 <= options.total) {
- pageStructure.push(` `)
+ pageStructure.push(` `)
} else {
- pageStructure.push(` `)
+ pageStructure.push(` `)
}
pageStructure.push(`
`);