diff --git a/_config.yml b/_config.yml index 38dda4f..f66f546 100755 --- a/_config.yml +++ b/_config.yml @@ -49,7 +49,7 @@ article: auto_excerpt: 200 # 分类颜色 category_color: - '新闻稿': '#DA0F47' + '探索号': '#f44336' # 文章许可协议 license: '本文采用[署名-非商业性使用-相同方式共享 4.0 国际](https://creativecommons.org/licenses/by-nc-sa/4.0/)许可协议,转载请注明出处。' # 分享 diff --git a/layout/_partial/sidebar/index.ejs b/layout/_partial/sidebar/index.ejs index be4262a..50b287a 100755 --- a/layout/_partial/sidebar/index.ejs +++ b/layout/_partial/sidebar/index.ejs @@ -74,16 +74,16 @@ function layoutWidgets() { if (page.sidebar) { page.sidebar.forEach((w, i) => { let name = '' + let widget = {} if (typeof w == 'string') { name = w - } else if (typeof w == 'object' && w.layout && w.override) { + } else if (typeof w == 'object' && w.override) { name = w.override } - let widget = {} if (name in theme.data.widgets) { Object.assign(widget, theme.data.widgets[name]) } - if (typeof w == 'object' && w.layout) { + if (typeof w == 'object' && w.override) { Object.assign(widget, w) } if (widget && widget.layout) { diff --git a/layout/_partial/sidebar/widgets/ghuser.ejs b/layout/_partial/sidebar/widgets/ghuser.ejs index 24351b4..7b0999e 100644 --- a/layout/_partial/sidebar/widgets/ghuser.ejs +++ b/layout/_partial/sidebar/widgets/ghuser.ejs @@ -24,7 +24,7 @@ function layoutDiv() { el += '
'; // body - el += '
'; + el += '
'; if (item.avatar) { el += '
'; }