[fix] notebooks undefined (#527)

This commit is contained in:
星日语 2024-10-12 18:26:29 +08:00 committed by GitHub
parent bc5760aadb
commit 54715a29c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function paginationWithEmpty(base, posts, options={}) {
hexo.extend.generator.register('notebooks', function (locals) { hexo.extend.generator.register('notebooks', function (locals) {
const { site_tree, notebooks } = hexo.theme.config const { site_tree, notebooks } = hexo.theme.config
if (notebooks.tree.length === 0) { if (notebooks.tree.length === undefined) {
return [] return []
} }