fix 侧边栏默认组件

This commit is contained in:
xaoxuu 2021-11-20 01:51:22 +08:00
parent 00711f046e
commit 2d5acfb7eb
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ if (page.sidebar == undefined) {
} else { } else {
page.sidebar = theme.sidebar.widget_layout.wiki; 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; page.sidebar = theme.sidebar.widget_layout.index;
} else if (page.layout == 'page') { } else if (page.layout == 'page') {
page.sidebar = theme.sidebar.widget_layout.page; page.sidebar = theme.sidebar.widget_layout.page;