From 54715a29c94daa1f1c75bf1268458be5f756c317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=97=A5=E8=AF=AD?= Date: Sat, 12 Oct 2024 18:26:29 +0800 Subject: [PATCH] [fix] notebooks undefined (#527) --- scripts/generators/notebooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 [] }