diff --git a/scripts/generators/notebooks.js b/scripts/generators/notebooks.js index b34462e..f5fa101 100644 --- a/scripts/generators/notebooks.js +++ b/scripts/generators/notebooks.js @@ -30,7 +30,7 @@ function paginationWithEmpty(base, posts, options={}) { hexo.extend.generator.register('notebooks', function (locals) { const { site_tree, notebooks } = hexo.theme.config - if (notebooks.tree.length === 0) { + if (notebooks.tree.length === undefined) { return [] }