[fix] notebooks undefined (#527)
This commit is contained in:
parent
bc5760aadb
commit
54715a29c9
|
@ -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 []
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue