hexo-theme-keep/scripts/helper.js

7 lines
217 B
JavaScript
Raw Normal View History

hexo.extend.helper.register('isInHomePaging', function (pagePath, route) {
if (pagePath.length > 5 && route === '/' ) {
return pagePath.slice(0, 5) === 'page/';
} else {
return false;
}
});