diff --git a/_config.yml b/_config.yml index 76decd5..6f930dc 100755 --- a/_config.yml +++ b/_config.yml @@ -16,7 +16,21 @@ open_graph: enable: true twitter_id: # for open_graph meta -######## head tags ######## + +######## Sidebar ######## +logo: + avatar: '[config.avatar](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)' + title: '[config.title](/)' # you can set html tag like: '[](/)' + subtitle: # 文字1 | 文字2(鼠标放上去会切换到文字2) + +menu: + # post: '[btn.blog](/)' + # wiki: '[btn.wiki](/wiki/)' + # friends: '[友链](/friends/)' + # about: '[关于](/about/)' + + +######## Main ######## # 站点主结构树 root: # 主页配置 @@ -57,22 +71,7 @@ root: page: sidebar: toc, search -######## Sidebar ######## -logo: - avatar: '[config.avatar](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)' - title: '[config.title](/)' # you can set html tag like: '[](/)' - subtitle: # 文字1 | 文字2(鼠标放上去会切换到文字2) -menu: - # post: '[btn.blog](/)' - # wiki: '[btn.wiki](/wiki/)' - # friends: '[友链](/friends/)' - # about: '[关于](/about/)' - - -######## Main ######## -breadcrumb: - home: home # config.title / config.author / home or custom content ######## Article ######## article: diff --git a/layout/_partial/main/navbar/breadcrumb.ejs b/layout/_partial/main/navbar/breadcrumb.ejs index 89c711d..79925a4 100644 --- a/layout/_partial/main/navbar/breadcrumb.ejs +++ b/layout/_partial/main/navbar/breadcrumb.ejs @@ -5,15 +5,6 @@ function layoutDiv() { return el; } var home_title = __("btn.home"); - if (theme.breadcrumb && theme.breadcrumb.home) { - if (theme.breadcrumb.home === 'config.title') { - home_title = config.title; - } else if (theme.breadcrumb.home === 'config.author') { - home_title = config.author; - } else if (theme.breadcrumb.home !== 'home') { - home_title = theme.breadcrumb.home; - } - } if (page.layout === "post") { var firstCat = ""; if (page.categories && page.categories.length > 0) { diff --git a/layout/_partial/main/post_list/post_card.ejs b/layout/_partial/main/post_list/post_card.ejs index b0adf7a..a17dca3 100755 --- a/layout/_partial/main/post_list/post_card.ejs +++ b/layout/_partial/main/post_list/post_card.ejs @@ -69,18 +69,7 @@ function div_default() { // meta el += '