From 2d5acfb7ebc0e6b223e4f7b46deb480a7eac8e8d Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 20 Nov 2021 01:51:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BE=A7=E8=BE=B9=E6=A0=8F=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/sidebar/index.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/sidebar/index.ejs b/layout/_partial/sidebar/index.ejs index e2a4680..bf2bece 100755 --- a/layout/_partial/sidebar/index.ejs +++ b/layout/_partial/sidebar/index.ejs @@ -10,7 +10,7 @@ if (page.sidebar == undefined) { } else { page.sidebar = theme.sidebar.widget_layout.wiki; } - } else if (is_home() || ['categories', 'tags', 'archives', 'index', '404'].includes(page.layout)) { + } else if (is_home() || ['categories', 'tags', 'archives', 'index', '404', undefined].includes(page.layout)) { page.sidebar = theme.sidebar.widget_layout.index; } else if (page.layout == 'page') { page.sidebar = theme.sidebar.widget_layout.page;