diff --git a/_config.yml b/_config.yml index 00cef74..23fed42 100755 --- a/_config.yml +++ b/_config.yml @@ -19,12 +19,10 @@ services: nodewaves: true busuanzi: true # fastclick: true - # popular_posts: true # 需要安装插件 hexo-related-popular-posts comments: true volantis: true # music: true # share: true - # qrcode: true # 需要安装插件 npm i -S hexo-helper-qrcode ############################### 默认值 ############################### @@ -108,7 +106,7 @@ sidebar: avatar: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png social: true - widget: toc - - widget: list + - widget: square icon: fas fa-map-signs title: 站内导航 rows: @@ -142,7 +140,7 @@ sidebar: more: icon: fas fa-expand-arrows-alt url: blog/tags/ - - widget: related_posts + - widget: related_posts # 需要安装插件 npm i -S hexo-related-popular-posts - widget: music icon: fas fa-compact-disc title: "最近在听" @@ -165,6 +163,7 @@ social: url: https://music.163.com/#/user/home?id=63035382 # 分享按钮 +# 当id为qrcode时需要安装插件 npm i -S hexo-helper-qrcode share: - id: qq name: QQ好友 diff --git a/layout/_partial/meta.ejs b/layout/_partial/meta.ejs index c8631e5..6b0ac7a 100644 --- a/layout/_partial/meta.ejs +++ b/layout/_partial/meta.ejs @@ -1,4 +1,4 @@ -<% if(is_home() || is_category() || is_archive() || is_tag()) { +<% if(is_home() || is_category() || is_archive() || is_tag() || page.index) { var isPostList = true; } else { var isPostList = false; diff --git a/layout/_partial/side.ejs b/layout/_partial/side.ejs index ddc256e..05258f9 100755 --- a/layout/_partial/side.ejs +++ b/layout/_partial/side.ejs @@ -1,15 +1,29 @@ diff --git a/layout/_third-party/clipboard.ejs b/layout/_third-party/clipboard.ejs index a1b24e2..ec1df04 100644 --- a/layout/_third-party/clipboard.ejs +++ b/layout/_third-party/clipboard.ejs @@ -8,7 +8,7 @@ var initCopyCode = function(){ var copyHtml = ''; copyHtml += ''; $(".highlight .code pre").before(copyHtml); var clipboard = new ClipboardJS('.btn-copy', { diff --git a/layout/_third-party/share.ejs b/layout/_third-party/share.ejs index 20a37e7..acfe350 100644 --- a/layout/_third-party/share.ejs +++ b/layout/_third-party/share.ejs @@ -3,7 +3,7 @@