From c744c69ae36c99f98372c6dfef602d6575c0cf75 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 24 Feb 2019 12:59:16 +0800 Subject: [PATCH] update --- _config.yml | 21 ++++----------------- layout/_third-party/comments.ejs | 6 ------ layout/_third-party/popular_posts.ejs | 2 +- layout/_third-party/recommended_posts.ejs | 11 ----------- 4 files changed, 5 insertions(+), 35 deletions(-) delete mode 100644 layout/_third-party/recommended_posts.ejs diff --git a/_config.yml b/_config.yml index ec61c21..d43d0b4 100755 --- a/_config.yml +++ b/_config.yml @@ -26,13 +26,12 @@ services: busuanzi: true # fastclick: true # leancloud_visitors: true - # recommended_posts: true # 需要安装插件 hexo-recommended-posts - popular_posts: true # 需要安装插件 hexo-related-popular-posts + # popular_posts: true # 需要安装插件 hexo-related-popular-posts comments: true volantis: true - music: true - share: true - qrcode: true # 需要安装插件 npm i -S hexo-helper-qrcode + # music: true + # share: true + # qrcode: true # 需要安装插件 npm i -S hexo-helper-qrcode ############################### 杂项 ############################### @@ -55,21 +54,9 @@ music: post: true # layout: post 的页面是否显示 - # 友链页头像占位图 loading_img: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1.0/img/qq/亲亲.gif -# 推荐文章 -recommended_posts: - autoDisplay: false # 自动在文章底部显示推荐文章,如果你使用Material-X主题,这里要设置为false。 - server: https://api.truelaurel.com # 后端推荐服务器地址 - timeoutInMillis: 10000 # 服务时长,超过此时长,则使用离线推荐模式 - excludePattern: [] - titleHtml:

推荐文章

#自定义标题 - internalLinks: 3 # 内部文章数量 - externalLinks: 2 # 外部文章数量 - fixedNumber: false - # Search search: diff --git a/layout/_third-party/comments.ejs b/layout/_third-party/comments.ejs index 253320a..34e48c7 100644 --- a/layout/_third-party/comments.ejs +++ b/layout/_third-party/comments.ejs @@ -4,9 +4,6 @@ var displayPopularPosts = false; var displayComments = false; if (page && theme.services) { - if (theme.services.recommended_posts == true && theme.recommended_posts && theme.recommended_posts.autoDisplay == false && page.layout == 'post' && page.recommended_posts != false) { - displayRecommentedPosts = true; - } if ((config.disqus_shortname || config.livere_uid || config.valine) && theme.services.comments == true && page.comments != false) { displayComments = true; } @@ -19,9 +16,6 @@ <% if (displayRecommentedPosts || displayPopularPosts || displayComments) { %>
- <% if (displayRecommentedPosts) { %> - <%- partial('recommended_posts', {page: page, site: site}) %> - <% } %> <% if (displayPopularPosts) { %> <%- partial('popular_posts', {page: page, site: site}) %> <% } %> diff --git a/layout/_third-party/popular_posts.ejs b/layout/_third-party/popular_posts.ejs index c15a0e4..943c5c2 100644 --- a/layout/_third-party/popular_posts.ejs +++ b/layout/_third-party/popular_posts.ejs @@ -1,4 +1,4 @@ -