hexo-theme-next
Advanced tools
Comparing version 8.6.1 to 8.7.0
{ | ||
"name": "hexo-theme-next", | ||
"version": "8.6.1", | ||
"version": "8.7.0", | ||
"description": "Elegant and powerful theme for Hexo.", | ||
@@ -37,7 +37,7 @@ "main": "package.json", | ||
"chai": "4.3.4", | ||
"eslint": "7.29.0", | ||
"eslint": "7.32.0", | ||
"hexo": "5.4.0", | ||
"hexo-renderer-marked": "4.0.0", | ||
"js-yaml": "4.1.0", | ||
"mocha": "9.0.1", | ||
"mocha": "9.0.3", | ||
"nyc": "15.1.0", | ||
@@ -44,0 +44,0 @@ "stylint": "2.0.0" |
@@ -184,3 +184,3 @@ /* global NexT, CONFIG */ | ||
let index = NexT.utils.sections.findIndex(element => { | ||
return element && element.getBoundingClientRect().top > 0; | ||
return element && element.getBoundingClientRect().top > 10; | ||
}); | ||
@@ -279,3 +279,6 @@ if (index === -1) { | ||
easing : 'linear', | ||
scrollTop: offset + 10 | ||
scrollTop: offset, | ||
complete : () => { | ||
history.pushState(null, document.title, element.href); | ||
} | ||
}); | ||
@@ -282,0 +285,0 @@ }); |
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
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
3047
444180